[FIR] add more tests diagnostic tests on data and delegated classes
^KT-63522 ^KT-63512 ^KT-63042
This commit is contained in:
committed by
Space Team
parent
fab63e38aa
commit
b3b184f00d
@@ -0,0 +1,16 @@
|
||||
// DUMP_IR
|
||||
// IGNORE_BACKEND_K2: ANY
|
||||
package second
|
||||
|
||||
fun box(): String {
|
||||
val data = MyClass(object : Base<Base<Int>> {})
|
||||
return data.foo()
|
||||
}
|
||||
|
||||
interface Base<A> {
|
||||
fun foo(): String = "OK"
|
||||
}
|
||||
|
||||
class MyClass(val prop: second.Base<second.Base<Int>>): Base<Base<Int>> by prop {
|
||||
interface Base
|
||||
}
|
||||
Reference in New Issue
Block a user