Do not generate CHECKCAST after 'null' literal
#KT-15411 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// KT-15411 Unnecessary CHECKCAST bytecode when dealing with null
|
||||
|
||||
fun test1(): String? {
|
||||
return null
|
||||
}
|
||||
|
||||
fun test2(): BooleanArray? {
|
||||
return null
|
||||
}
|
||||
|
||||
fun test3(): Unit? {
|
||||
return null
|
||||
}
|
||||
|
||||
// 0 CHECKCAST
|
||||
Reference in New Issue
Block a user