Test for obsolete KT-9277
#KT-9277 Obsolete
This commit is contained in:
@@ -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) {}
|
||||
Reference in New Issue
Block a user