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:
+10
@@ -0,0 +1,10 @@
|
||||
import java.io.File
|
||||
|
||||
class C {
|
||||
constructor(file: File)
|
||||
|
||||
init {
|
||||
val xxx = 1
|
||||
xxx.inc()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import java.io.File
|
||||
|
||||
class C {
|
||||
constructor(file: File)
|
||||
|
||||
init {
|
||||
val xxx = 1
|
||||
xxx.inc()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user