Prohibit instance access before super call
- Before this change members just left unresolved as they were absent in the specific scope named scopeForSecondaryConstructorHeaderResolution that created just to prohibit such accesses. - Now they are resolved the same way as other members, but diagnostic is repored by in-place injected CallChecker - Drop obsolete type of class scope #KT-6995 Fixed
This commit is contained in:
+2
-2
@@ -9,5 +9,5 @@ class A(val prop: Int, arg: Int) {
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
// EXIST: abc, topLevel, x
|
||||
// ABSENT: arg, local, prop, another, foo
|
||||
// EXIST: abc, topLevel, x, prop, another, foo
|
||||
// ABSENT: arg, local
|
||||
|
||||
Reference in New Issue
Block a user