[KAPT] Migrate kapt tests to new test infrastructure
This commit is contained in:
committed by
teamcity
parent
fdf1b8b1c0
commit
9c41e75802
@@ -1,6 +1,11 @@
|
||||
// STRICT
|
||||
|
||||
//FILE: test/ClassRefAnnotation.java
|
||||
// EXPECTED_ERROR: (kotlin:42:1) cannot find symbol
|
||||
// EXPECTED_ERROR: (other:-1:-1) test.PackedClass: Can't reference type 'RootClass' from default package in Java stub.
|
||||
// EXPECTED_ERROR: (other:-1:-1) test.PackedClass: Can't reference type 'AnotherRootClass' from default package in Java stub.
|
||||
// EXPECTED_ERROR: (other:-1:-1) test.PackedWithAnnotation: Can't reference type 'RootClass' from default package in Java stub.
|
||||
|
||||
// FILE: test/ClassRefAnnotation.java
|
||||
|
||||
package test;
|
||||
|
||||
@@ -15,13 +20,13 @@ public @interface ClassRefAnnotation {
|
||||
Class<?>[] value();
|
||||
}
|
||||
|
||||
//FILE: a.kt
|
||||
// FILE: a.kt
|
||||
|
||||
class RootClass
|
||||
|
||||
class AnotherRootClass
|
||||
|
||||
//FILE: b.kt
|
||||
// FILE: b.kt
|
||||
package test
|
||||
|
||||
import java.lang.Number as JavaNumber
|
||||
@@ -36,8 +41,3 @@ interface PackedClass {
|
||||
|
||||
@ClassRefAnnotation(RootClass::class)
|
||||
class PackedWithAnnotation
|
||||
|
||||
// EXPECTED_ERROR(kotlin:14:1) cannot find symbol
|
||||
// EXPECTED_ERROR(other:-1:-1) test.PackedClass: Can't reference type 'RootClass' from default package in Java stub.
|
||||
// EXPECTED_ERROR(other:-1:-1) test.PackedClass: Can't reference type 'AnotherRootClass' from default package in Java stub.
|
||||
// EXPECTED_ERROR(other:-1:-1) test.PackedWithAnnotation: Can't reference type 'RootClass' from default package in Java stub.
|
||||
|
||||
Reference in New Issue
Block a user