Added test for EA-49318.

This commit is contained in:
Evgeny Gerashchenko
2014-10-09 20:56:37 +04:00
parent ad1b460bea
commit fa70192f75
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,16 @@
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"