Fix codegen of !! for nullable generics
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
fun foo<T>(t: T) {
|
||||
t!!
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
try {
|
||||
foo<Any?>(null)
|
||||
} catch (e: Exception) {
|
||||
return "OK"
|
||||
}
|
||||
return "Fail"
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fun box(): String {
|
||||
42!!
|
||||
42.toLong()!!
|
||||
return "OK"!!
|
||||
}
|
||||
Reference in New Issue
Block a user