Adapt CompileKotlinAgainstKotlin test to black box format

Rename/remove some obsolete test cases
This commit is contained in:
Alexander Udalov
2016-02-29 13:36:16 +03:00
parent 0b26e749f6
commit 9f67fe2fe3
34 changed files with 152 additions and 183 deletions
@@ -0,0 +1,24 @@
// FILE: A.kt
package a
@Retention(AnnotationRetention.RUNTIME)
annotation class Ann
interface Tr {
@Ann
fun foo() {}
}
// FILE: B.kt
class C : a.Tr
fun box(): String {
val method = C::class.java.getDeclaredMethod("foo")
val annotations = method.getDeclaredAnnotations().joinToString("\n")
if (annotations != "@a.Ann()") {
return "Fail: $annotations"
}
return "OK"
}