[FIR] Add separate local scope for init blocks
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
class Your {
|
||||
init {
|
||||
var y: String? = "xyz"
|
||||
if (<!UNRESOLVED_REFERENCE!>y<!> != null) {
|
||||
if (y != null) {
|
||||
// Bug that should be fixed
|
||||
// Problem: descriptorToDeclaration cannot get here init block by its descriptor
|
||||
// See PreliminaryDeclarationVisitor.getVisitorByVariable
|
||||
<!UNRESOLVED_REFERENCE!>y<!>.<!UNRESOLVED_REFERENCE!>hashCode<!>()
|
||||
y.hashCode()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user