Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/classMemberFromExtension.kt
T
2018-04-27 20:02:59 +03:00

17 lines
347 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1114
// This test was adapted from compiler/testData/codegen/box/callableReference/function/.
package foo
class A {
fun o() = 111
fun k(k: Int) = k
}
fun A.bar() = (A::o)(this) + (A::k)(this, 222)
fun box(): String {
val result = A().bar()
if (result != 333) return "Fail $result"
return "OK"
}