Remove redundant check for a variable being initialized after write
It's anyway is obvious for write instruction, while effectively after optimizations we treat val with syntactic initializer uninitialized until their immediate initiazer
This commit is contained in:
@@ -4,7 +4,7 @@ package kt897
|
||||
|
||||
class A() {
|
||||
init {
|
||||
i = 11
|
||||
<!INITIALIZATION_BEFORE_DECLARATION!>i<!> = 11
|
||||
}
|
||||
val i : Int? = null // must be an error
|
||||
|
||||
|
||||
Reference in New Issue
Block a user