[IR][tests] Removal of inlined class case

^KT-52478
This commit is contained in:
Dmitriy Dolovov
2022-06-08 19:33:10 +03:00
parent 7b5e33b6ca
commit d5ded97ccb
10 changed files with 123 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
class Bar : Foo()
inline fun fooVariableType() {
val foo: Foo? = null
check(foo == null)
}
inline fun barVariableType() {
val bar: Bar? = null
check(bar == null)
}
inline fun fooInstance() {
check(Foo().toString() != "Qux")
}
inline fun barInstance() {
check(Bar().toString() != "Qux")
}
inline fun fooInstance2() {
check(run(::Foo).toString() != "Qux")
}
inline fun barInstance2() {
check(run(::Bar).toString() != "Qux")
}
inline fun fooAnonymousObject() {
val foo = object : Foo() {}
check(foo == null)
}
@@ -0,0 +1,2 @@
STEP 0:
dependencies: stdlib, lib1