Properly calculate safe call receivers
This commit is contained in:
committed by
Dmitry Petrov
parent
bc6f691405
commit
e543972dad
+7
-1
@@ -12,4 +12,10 @@ fun test4(x: Ref?) {
|
||||
x?.value = 0
|
||||
}
|
||||
|
||||
fun IHost.test5(s: String?) = s?.extLength()
|
||||
fun IHost.test5(s: String?) = s?.extLength()
|
||||
|
||||
fun Int.foo() = 239
|
||||
|
||||
fun box() {
|
||||
42?.foo()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user