Get rid of FIELD_IDENTIFIER at syntax level, two errors dropped, a set of tests fixed / deleted #KT-9539 Fixed
This commit is contained in:
Vendored
+1
-3
@@ -135,7 +135,6 @@ class AnonymousInitializers(var a: String, val b: String) {
|
||||
|
||||
init {
|
||||
<!VAL_REASSIGNMENT!>i<!> = 13
|
||||
<!NO_BACKING_FIELD_CUSTOM_ACCESSORS!>$j<!> = 30
|
||||
<!VAL_REASSIGNMENT!>j<!> = 34
|
||||
}
|
||||
|
||||
@@ -241,7 +240,7 @@ class Outer() {
|
||||
}
|
||||
|
||||
class ForwardAccessToBackingField() { //kt-147
|
||||
val a = <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM, UNINITIALIZED_VARIABLE!>$a<!> // error
|
||||
val a = <!TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM, UNINITIALIZED_VARIABLE!>a<!> // error
|
||||
val b = <!UNINITIALIZED_VARIABLE!>c<!> // error
|
||||
val c = 1
|
||||
}
|
||||
@@ -327,7 +326,6 @@ fun func() {
|
||||
val x = b
|
||||
init {
|
||||
<!VAL_REASSIGNMENT!>b<!> = 4
|
||||
<!UNRESOLVED_REFERENCE!>$b<!> = 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -61,7 +61,7 @@ package uninitialized_reassigned_variables {
|
||||
|
||||
public final class ForwardAccessToBackingField {
|
||||
public constructor ForwardAccessToBackingField()
|
||||
public final val a: [ERROR : Type for $a]
|
||||
public final val a: [ERROR : Type for a]
|
||||
public final val b: kotlin.Int = 1
|
||||
public final val c: kotlin.Int = 1
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
|
||||
Reference in New Issue
Block a user