Fixed containingDeclaration for descriptors inside init-blocks for the case of no primary constructor

KT-10226 Wrong Imports optimization ("Unresolved reference" is being added)

 #KT-10226 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-01-13 22:21:06 +03:00
parent f4613b8db1
commit 15930a42b8
5 changed files with 100 additions and 27 deletions
+10
View File
@@ -0,0 +1,10 @@
import java.io.File
class C {
constructor(file: File)
init {
val xxx = 1
xxx.inc()
}
}
+10
View File
@@ -0,0 +1,10 @@
import java.io.File
class C {
constructor(file: File)
init {
val xxx = 1
xxx.inc()
}
}