Migrate CompileKotlinAgainstKotlin test to multi-file framework
This commit is contained in:
committed by
Alexander Udalov
parent
5884d4be79
commit
cc8af573f9
Vendored
+15
@@ -0,0 +1,15 @@
|
||||
// FILE: A.kt
|
||||
|
||||
@file:[JvmName("Test") JvmMultifileClass]
|
||||
|
||||
val property = "K"
|
||||
|
||||
inline fun K(body: () -> String): String =
|
||||
body() + property
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val ok = K { "O" }
|
||||
if (ok != "OK") throw java.lang.AssertionError("Expected: OK, actual: $ok")
|
||||
}
|
||||
Reference in New Issue
Block a user