Files
kotlin/compiler/testData/codegen/boxWithStdlib/lazyCodegen/optimizations/noOptimization.kt
Michael Bogdanov e2826a47e1 Remove "operation" method from StackValue.kt;
Compilation fix: remove static import to kotlin from AsmUtil
2014-11-21 13:59:44 +03:00

28 lines
372 B
Kotlin

class A
class B
var holder = 0
fun A.not(): A {
holder++
return this;
}
fun B.not(): Boolean {
holder++
return false;
}
fun box(): String {
!!!!!A()
if (holder != 5) return "fail 1"
holder = 0;
if (!!!B() || holder != 1) return "fail 2"
if (!B() != false) return "fail 3"
if (!!B() != true) return "fail 4"
return "OK"
}