[FIR] KT-53479: Paraphrase INSTANCE_ACCESS_BEFORE_SUPER_CALL
This commit is contained in:
Vendored
+1
-1
@@ -25,7 +25,7 @@ FILE: instanceAccessBeforeSuperCall.kt
|
||||
}
|
||||
|
||||
public constructor(x: R|kotlin/Int|): R|C| {
|
||||
this<R|C|>(fun <anonymous>(): <ERROR TYPE REF: Cannot access ''<this>'' before superclass constructor has been called> <inline=Unknown> {
|
||||
this<R|C|>(fun <anonymous>(): <ERROR TYPE REF: Cannot access ''<this>'' before the instance has been initialized> <inline=Unknown> {
|
||||
lval a: R|kotlin/Int| = Int(10)
|
||||
^ this@R|/C|
|
||||
}
|
||||
|
||||
+1
-1
@@ -664,7 +664,7 @@ object FirErrorsDefaultMessages : BaseDiagnosticRendererFactory() {
|
||||
)
|
||||
map.put(
|
||||
INSTANCE_ACCESS_BEFORE_SUPER_CALL,
|
||||
"Cannot access ''{0}'' before superclass constructor has been called",
|
||||
"Cannot access ''{0}'' before the instance has been initialized",
|
||||
TO_STRING
|
||||
)
|
||||
map.put(CREATING_AN_INSTANCE_OF_ABSTRACT_CLASS, "Cannot create an instance of an abstract class")
|
||||
|
||||
+1
-1
@@ -172,7 +172,7 @@ class ConeOuterClassArgumentsRequired(
|
||||
}
|
||||
|
||||
class ConeInstanceAccessBeforeSuperCall(val target: String) : ConeDiagnostic {
|
||||
override val reason: String get() = "Cannot access ''${target}'' before superclass constructor has been called"
|
||||
override val reason: String get() = "Cannot access ''${target}'' before the instance has been initialized"
|
||||
}
|
||||
|
||||
class ConeUnsupportedCallableReferenceTarget(override val candidate: AbstractCandidate) : ConeDiagnosticWithSingleCandidate {
|
||||
|
||||
Reference in New Issue
Block a user