[IR][tests] New test: non-abstract callable member in abstract class becomes abstract
^KT-53663
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
package lib2
|
||||
|
||||
import lib1.A
|
||||
|
||||
class B : A {
|
||||
override fun bar() = -42
|
||||
|
||||
val unlinkedFunctionUsage get() = foo()
|
||||
}
|
||||
|
||||
class B1 : A {
|
||||
override fun bar() = -42
|
||||
|
||||
val unlinkedFunctionUsage = foo() // Expected failure on class instance initialization.
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
STEP 0:
|
||||
dependencies: stdlib, lib1
|
||||
Reference in New Issue
Block a user