Kapt+JVM_IR: generate delegated members correctly
Generate a declaration for each delegated member without body. If we don't generate delegated declarations, subclasses will have incorrect IR with unbound symbols in fake overrides. #KT-58027 Fixed
This commit is contained in:
committed by
Space Team
parent
5407ac1c72
commit
bc7aea1426
+11
@@ -0,0 +1,11 @@
|
||||
// CORRECT_ERROR_TYPES
|
||||
|
||||
@Suppress("UNRESOLVED_REFERENCE")
|
||||
interface A {
|
||||
fun inject(b: B)
|
||||
val x: String
|
||||
|
||||
companion object : B()
|
||||
|
||||
abstract class B : A by Unresolved
|
||||
}
|
||||
Reference in New Issue
Block a user