Files
kotlin/compiler/testData/codegen/boxInline/defaultValues/simpleDefaultMethod.1.kt
Michael Bogdanov 83eb983e08 KT-5699 VerifyError in inlines
#KT-5699 Fixed
2014-08-29 14:02:52 +04:00

25 lines
459 B
Kotlin

import test.*
fun testCompilation(): String {
emptyFun()
emptyFun("K")
return "OK"
}
fun simple(): String {
return simpleFun() + simpleFun("K")
}
fun box(): String {
var result = testCompilation()
if (result != "OK") return "fail1: ${result}"
result = simple()
if (result != "OK") return "fail2: ${result}"
var result2 = simpleDoubleFun(2.0)
if (result2 != 2.0 + 1.0) return "fail3: ${result2}"
return "OK"
}