Don't allow to use own members when resolve super constructor call in (companion) object

This commit is contained in:
Zalim Bashorov
2015-12-14 18:45:17 +03:00
parent e9ea4cc953
commit 69c2668530
6 changed files with 114 additions and 1 deletions
@@ -0,0 +1,8 @@
open class S(val a: Any, val b: Any, val c: Any) {}
object A : S(<!UNRESOLVED_REFERENCE!>prop1<!>, <!UNRESOLVED_REFERENCE!>prop2<!>, <!UNRESOLVED_REFERENCE!>func<!>()) {
val prop1 = 1
val prop2: Int
get() = 1
fun func() {}
}