Do not render @NoInfer, @Exact annotations

For now they are always not rendered,
but later they should be rendered in descriptors, but omitted in error messages
This commit is contained in:
Svetlana Isakova
2015-10-16 13:36:49 +03:00
parent 566e27788f
commit 9b440345a1
7 changed files with 28 additions and 8 deletions
@@ -0,0 +1,10 @@
// !DIAGNOSTICS_NUMBER: 1
// !DIAGNOSTICS: TYPE_MISMATCH
// !MESSAGE_TYPE: TEXT
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
fun <T> test1(t1: T, t2: @kotlin.internal.NoInfer T): T = t1
fun usage() {
test1(1, "a")
}