1bc8ad7852
This commit fixes tests in 173 branch.
45 lines
1003 B
Plaintext
Vendored
45 lines
1003 B
Plaintext
Vendored
class T {
|
|
class U {
|
|
abstract class A {
|
|
// INFO: {"checked": "true"}
|
|
var x = 2 * 3
|
|
|
|
// INFO: {"checked": "true"}
|
|
internal inner class X
|
|
|
|
// INFO: {"checked": "true"}
|
|
internal class Y
|
|
|
|
// INFO: {"checked": "true"}
|
|
fun foo(n: Int): Boolean {
|
|
return n > 0
|
|
}
|
|
|
|
// INFO: {"checked": "true"}
|
|
abstract fun bar(s: String): Int
|
|
|
|
companion object {
|
|
// INFO: {"checked": "true"}
|
|
var X = "1" + "2"
|
|
|
|
// INFO: {"checked": "true"}
|
|
@kotlin.jvm.JvmStatic
|
|
fun foo2(n: Int): String {
|
|
return "_" + n + "_"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
val b = object : B() {
|
|
override fun bar(s: String) = s.length()
|
|
}
|
|
val t1 = b.x
|
|
b.x = t1 + 1
|
|
val t2 = T.U.A.X
|
|
b.foo(1)
|
|
T.U.A.foo2(2)
|
|
T.U.A.Y()
|
|
} |