[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
// WITH_RUNTIME
|
||||
|
||||
package first.second
|
||||
|
||||
class FqName(val s: String)
|
||||
|
||||
@JvmField
|
||||
val VOLATILE_ANNOTATION_FQ_NAME = FqName("volatile")
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
import first.second.VOLATILE_ANNOTATION_FQ_NAME
|
||||
import first.second.FqName
|
||||
|
||||
fun foo() = hasAnnotation(VOLATILE_ANNOTATION_FQ_NAME)
|
||||
|
||||
fun hasAnnotation(name: FqName): Boolean = true
|
||||
|
||||
fun box() = if (foo()) "OK" else "FAIL"
|
||||
Reference in New Issue
Block a user