diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/1.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/1.kt index bfa94819897..db170d479cd 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/1.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/1.kt @@ -11,7 +11,7 @@ @Target(AnnotationTarget.TYPE) annotation class Ann -fun foo(x: String): @Ann(unresolved_reference) String { // OK, error only in IDE but not in the compiler +fun foo(x: String): @Ann(unresolved_reference) String { return x } diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/10.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/10.kt index 454a50531f7..730c102fb9b 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/10.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/10.kt @@ -14,13 +14,13 @@ annotation class Ann(val x: Int) fun case_1(): Any { - val x: (Int) -> @Ann(unresolved_reference) Unit = {} // OK, no error in IDE and in the compiler + val x: (Int) -> @Ann(unresolved_reference) Unit = {} return x } fun case_2(): Any { - val x: (@Ann(unresolved_reference) Int) -> Unit = { a: Int -> println(a) } // OK, no error in IDE and in the compiler + val x: (@Ann(unresolved_reference) Int) -> Unit = { a: Int -> println(a) } return x } diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/11.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/11.kt index 8071a4f9399..2e2ae224340 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/11.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/11.kt @@ -12,7 +12,7 @@ @Target(AnnotationTarget.PROPERTY_GETTER) annotation class Ann(val x: Int) -class Foo : @Ann(10) Any() +class Foo : @Ann(10) Any() class Bar @@ -22,10 +22,10 @@ fun case_3(a: Any): Int? { open class TypeToken -val case_4 = object : TypeToken<@Ann(10) String>() {} +val case_4 = object : TypeToken<@Ann(10) String>() {} fun case_5(a: Any): Any { - a as @Ann(10) Int + a as @Ann(10) Int return a } diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/2.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/2.kt index a179c9f58b1..869b22216e3 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/2.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/2.kt @@ -11,7 +11,7 @@ @Target(AnnotationTarget.TYPE) annotation class Ann(val x: Int) -abstract class Foo : @Ann(unresolved_reference) Any() +abstract class Foo : @Ann(unresolved_reference) Any() class Bar: Foo() diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/3.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/3.kt index d7b7c38c0ff..6d140dab4be 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/3.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/3.kt @@ -13,11 +13,11 @@ annotation class Ann(val x: Int) class Inv -fun foo(i: Inv<@Ann(unresolved_reference) String>) {} +fun foo(i: Inv<@Ann(unresolved_reference) String>) {} -fun bar(vararg a: @Ann(unresolved_reference) Any) {} +fun bar(vararg a: @Ann(unresolved_reference) Any) {} -class A(a: @Ann(unresolved_reference) T) +class A(a: @Ann(unresolved_reference) T) fun box(): String? { val x = foo(Inv()) diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/4.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/4.kt index abe5069081f..c98062e1ca1 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/4.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/4.kt @@ -13,7 +13,7 @@ annotation class Ann(val x: Int) class Inv -fun case_1(): Inv<@Ann(unresolved_reference) String> = TODO() +fun case_1(): Inv<@Ann(unresolved_reference) String> = TODO() fun box(): String? { try { diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/5.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/5.kt index 6701f484301..2b2e8d37e55 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/5.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/5.kt @@ -11,11 +11,11 @@ @Target(AnnotationTarget.TYPE) annotation class Ann(val x: Int) -abstract class Barunresolved_reference) Any> +abstract class Bar class Foo : Bar() -class B where @Ann(unresolved_reference) T : Number +class B where @Ann(unresolved_reference) T : Number fun box(): String? { val x = Foo() diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/6.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/6.kt index 488742a1195..aaff2aa52af 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/6.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/6.kt @@ -12,17 +12,17 @@ annotation class Ann(val x: Int) fun case_1(a: Any): Int? { - return if (a is @Ann(unresolved_reference) String) 10 else null + return if (a is @Ann(unresolved_reference) String) 10 else null } fun case_2(a: Any): Any { - return a as @Ann(unresolved_reference) String // OK, no error in IDE and in the compiler + return a as @Ann(unresolved_reference) String } fun case_3_1(a: Any) = 10 fun case_3(a: Any): Any { - return case_3_1(a as @Ann(unresolved_reference) String) // OK, no error in IDE and in the compiler + return case_3_1(a as @Ann(unresolved_reference) String) } fun box(): String? { diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/7.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/7.kt index 34d8582ff85..53fa613a239 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/7.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/7.kt @@ -13,11 +13,11 @@ annotation class Ann open class TypeToken -val case_1 = object : TypeToken<@Ann(unresolved_reference) String>() {} +val case_1 = object : TypeToken<@Ann(unresolved_reference) String>() {} interface A -val case_2 = object: @Ann(unresolved_reference) A {} +val case_2 = object: @Ann(unresolved_reference) A {} fun box(): String? { val x = case_1 diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/8.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/8.kt index a1d7f624f52..3f1d74f3ca0 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/8.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/8.kt @@ -11,10 +11,10 @@ @Target(AnnotationTarget.TYPE) annotation class Ann(val x: Int) -val @Ann(unresolved_reference) T.test // OK, error only in IDE but not in the compiler +val @Ann(unresolved_reference) T.test // OK, error only in IDE but not in the compiler get() = 10 -val @Ann(unresolved_reference) Int.test +val @Ann(unresolved_reference) Int.test get() = 10 fun box(): String? { diff --git a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/9.kt b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/9.kt index fbb06370517..f18ba1027e0 100644 --- a/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/9.kt +++ b/compiler/tests-spec/testData/codegen/box/notLinked/annotations/type-annotations/neg/9.kt @@ -13,7 +13,7 @@ annotation class Ann var T.test get() = 11 - set(value: @Ann(unresolved_reference) Int) {} + set(value: @Ann(unresolved_reference) Int) {} fun box(): String? { val x = 10.test