Files
kotlin-fork/js/js.translator/testData/box/callableReference/function/extensionFromExtension.kt
T
2018-04-19 13:17:28 +03:00

13 lines
254 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1112
// This test was adapted from compiler/testData/codegen/box/callableReference/function/.
package foo
class A
fun A.foo() = (A::bar)(this, "OK")
fun A.bar(x: String) = x
fun box() = A().foo()