Fix for KT-13374: CompilationException: Inline function call with anonymous object implementing an interface by delegation
#KT-13374 Fixed
This commit is contained in:
@@ -24,16 +24,16 @@ class Test3() : Test2() {
|
||||
|
||||
fun box(): String {
|
||||
try {
|
||||
Test::class.java.getDeclaredField("\$delegate_0")
|
||||
return "\$delegate_0 field generated for class Test but should not"
|
||||
Test::class.java.getDeclaredField("\$\$delegate_0")
|
||||
return "\$\$delegate_0 field generated for class Test but should not"
|
||||
}
|
||||
catch (e: NoSuchFieldException) {
|
||||
// ok
|
||||
}
|
||||
|
||||
try {
|
||||
Test2::class.java.getDeclaredField("\$delegate_0")
|
||||
return "\$delegate_0 field generated for class Test but should not"
|
||||
Test2::class.java.getDeclaredField("\$\$delegate_0")
|
||||
return "\$\$delegate_0 field generated for class Test but should not"
|
||||
}
|
||||
catch (e: NoSuchFieldException) {
|
||||
// ok
|
||||
|
||||
Reference in New Issue
Block a user