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:
+1
-4
@@ -11,10 +11,8 @@ interface NoC {
|
||||
}
|
||||
|
||||
class WithC() {
|
||||
val x : Int
|
||||
val x : Int = 42
|
||||
init {
|
||||
<error>$x</error> = 1
|
||||
<error>$y</error> = 2
|
||||
val <warning>b</warning> = x
|
||||
|
||||
}
|
||||
@@ -24,7 +22,6 @@ class WithC() {
|
||||
init {
|
||||
val <warning>z</warning> = <error>b</error>
|
||||
val <warning>zz</warning> = x
|
||||
val <warning>zzz</warning> = <error>$a</error>
|
||||
}
|
||||
|
||||
}
|
||||
-1
@@ -28,7 +28,6 @@ class WithCPI_Dup(<warning>x</warning> : Int) {
|
||||
|
||||
class WithCPI(x : Int) {
|
||||
val a = 1
|
||||
val b : Int = <error>$a</error>
|
||||
val xy : Int = x
|
||||
}
|
||||
|
||||
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
// JET-17 Do not infer property types by the initializer before the containing scope is ready
|
||||
|
||||
class WithC() {
|
||||
val a = 1
|
||||
val b = <error>$a</error> // error here, but must not be
|
||||
}
|
||||
Reference in New Issue
Block a user