This commit is contained in:
Roman Artemev
2018-05-08 14:56:46 +03:00
committed by Roman Artemev
parent 455edae7de
commit d71ff1818d
3 changed files with 26 additions and 0 deletions
@@ -0,0 +1,16 @@
// EXPECTED_REACHABLE_NODES: 1112
package foo
class A(val x: Int) {
var s = "sA:init:$x"
}
class B(val arg1: String, val arg2: String) {
var msg = arg1 + arg2
}
fun box(): String {
val ref = ::A
val result = ref(1).s + (::B)("23", "45").msg
return (if (result == "sA:init:12345") "OK" else result)
}