Wrong delegation to delegation property in debugger when property defined in another module (KT-12678)
Different bytecode can be generated for delegated property and for non-delegated one. Backend inspects DELEGATED_PROPERTY_CALL to understand the property type, and expects that this information had been already recorded into context. Frontend writes DELEGATED_PROPERTY_CALL into context during body resolve or type inference if type is not present. Either way in debugger context it may happen that the DELEGATED_PROPERTY_CALL won't be written into context. #KT-12678
This commit is contained in:
committed by
Nikolay Krasko
parent
0bc5007147
commit
4087e650aa
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
package delegatedPropertyInOtherFile
|
||||
|
||||
import delegatedPropertyInOtherFileOther.*
|
||||
|
||||
fun main(a: Array<String>) {
|
||||
val t = WithDelegate()
|
||||
|
||||
//Breakpoint!
|
||||
t.a
|
||||
}
|
||||
|
||||
// EXPRESSION: t.a
|
||||
// RESULT: 12: I
|
||||
Reference in New Issue
Block a user