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
@@ -0,0 +1,11 @@
// http://youtrack.jetbrains.net/issue/KT-413
open class A {
fun f() {}
}
class B : A() {
fun g() {
super<!UNEXPECTED_SAFE_CALL!>?.<!>f()
}
}