Properly calculate safe call receivers

This commit is contained in:
Michael Bogdanov
2016-10-01 14:55:44 +03:00
committed by Dmitry Petrov
parent bc6f691405
commit e543972dad
6 changed files with 40 additions and 17 deletions
+7 -1
View File
@@ -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()
}