Add diagnostic on calling inner classes constructors without receiver
Otherwise there will be just an unresolved reference that doesn't give any useful information #KT-8959 Fixed
This commit is contained in:
@@ -4,7 +4,7 @@ class A(
|
||||
n: Nested = foo(),
|
||||
n2: Nested = Nested(),
|
||||
inn: Inner = null!!,
|
||||
inn2: Inner = <!UNRESOLVED_REFERENCE!>Inner<!>(),
|
||||
inn2: Inner = <!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
||||
i: Interface = null!!,
|
||||
c: Int = CONST,
|
||||
cc: Int = Companion.CONST,
|
||||
|
||||
@@ -17,7 +17,7 @@ open class S(
|
||||
class A : I by S(
|
||||
foo(),
|
||||
Nested(),
|
||||
<!UNRESOLVED_REFERENCE!>Inner<!>(),
|
||||
<!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
||||
CONST,
|
||||
Companion.CONST,
|
||||
Nested.CONST,
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ open class S(
|
||||
class A : S (
|
||||
foo(),
|
||||
Nested(),
|
||||
<!UNRESOLVED_REFERENCE!>Inner<!>(),
|
||||
<!RESOLUTION_TO_CLASSIFIER!>Inner<!>(),
|
||||
CONST,
|
||||
Companion.CONST,
|
||||
Nested.CONST,
|
||||
|
||||
Reference in New Issue
Block a user