fix KT-431 Prohibit safe calls on namespaces, super etc

#KT-431 Fixed
This commit is contained in:
Michael Nedzelsky
2015-10-02 09:33:39 +03:00
parent 5848ea8d77
commit 483110332c
11 changed files with 83 additions and 13 deletions
@@ -10,7 +10,7 @@ val s: String = "test"
// FILE: test.kt
fun ff() {
val a = Test?.FOO
val b = foo?.s
System?.out.println(a + b)
}
val a = Test<!UNEXPECTED_SAFE_CALL!>?.<!>FOO
val b = foo<!UNEXPECTED_SAFE_CALL!>?.<!>s
System<!UNEXPECTED_SAFE_CALL!>?.<!>out.println(a + b)
}