Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/kCallableNameIntrinsic.kt
T
2016-11-09 21:41:12 +03:00

14 lines
305 B
Kotlin
Vendored

// TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
// See KT-12995
fun box(): String {
var state = 0
val name = (state++)::toString.name
if (name != "toString") return "Fail 1: $name"
if (state != 1) return "Fail 2: $state"
return "OK"
}