KT-13430 related: add non-null assertion works also for UNSAFE_INFIX_CALL
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Add non-null asserted (!!) call" "true"
|
||||
|
||||
class SafeType {
|
||||
infix fun op(arg: Int) {}
|
||||
}
|
||||
|
||||
fun safeB(p: SafeType?) {
|
||||
val v = p!! op 42
|
||||
}
|
||||
Reference in New Issue
Block a user