[Test] Move KotlinAgainstKotlin tests under BlackBoxCodegen tests

This commit is contained in:
Dmitriy Novozhilov
2021-01-22 15:13:50 +03:00
parent 1ea4fa4464
commit 5c8d555808
147 changed files with 3749 additions and 2743 deletions
@@ -0,0 +1,29 @@
// MODULE: lib
// FILE: A.kt
package a
public var topLevel: Int = 42
public val String.extension: Long
get() = length.toLong()
// MODULE: main(lib)
// FILE: B.kt
import a.*
fun box(): String {
val f = ::topLevel
val x1 = f.get()
if (x1 != 42) return "Fail x1: $x1"
f.set(239)
val x2 = f.get()
if (x2 != 239) return "Fail x2: $x2"
val g = String::extension
val y1 = g.get("abcde")
if (y1 != 5L) return "Fail y1: $y1"
return "OK"
}