Files
kotlin-fork/compiler/testData/codegen/box/regressions/ea49318.kt
T
Evgeny Gerashchenko fa70192f75 Added test for EA-49318.
2014-10-10 16:00:27 +04:00

16 lines
264 B
Kotlin

fun example(value : Int) {
val result: Int = if (value == 0) 1
else if (value == 1) 2
else throw IllegalArgumentException()
result
}
fun <T, S, U : T> foo(u: U) where U : S {}
fun main(args : Array<String>) {
foo(null!!)
}
fun box() = "OK"