Fix for KT-13374: CompilationException: Inline function call with anonymous object implementing an interface by delegation

#KT-13374 Fixed
This commit is contained in:
Michael Bogdanov
2016-08-15 14:46:58 +03:00
parent fca5834557
commit 7325baa06a
8 changed files with 57 additions and 7 deletions
@@ -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