Test for obsolete KT-9277

#KT-9277 Obsolete
This commit is contained in:
Michael Nedzelsky
2015-10-30 16:09:42 +03:00
parent dbc00baa48
commit 48929f3edf
2 changed files with 19 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// KT-9277 Unexpected NullPointerException in an invocaton with named arguments
fun box(): String {
foo(null)
return "OK"
}
fun foo(x : Int?){
bar(z = x ?: return, y = x)
}
fun bar(y : Int, z : Int) {}