[FakeOverrideBuilder] Workaround KT-64743
Because of KT-64743 there is unexpanded type-alias in a place we don't expect it to occur. To workaround this, we just expand typialiases in one more place. ^KT-64743
This commit is contained in:
committed by
Space Team
parent
c0f0c595c3
commit
c6e32571d6
@@ -0,0 +1,33 @@
|
||||
// LANGUAGE: +MultiPlatformProjects
|
||||
// KT-64776 - test infra problems
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6, WASM
|
||||
// MODULE: dep
|
||||
// FILE: dep.kt
|
||||
|
||||
open class Base1() {
|
||||
val prop = "O"
|
||||
fun foo() = "K"
|
||||
}
|
||||
open class Base2 : Base1()
|
||||
|
||||
// MODULE: lib-common(dep)
|
||||
// FILE: lib-common.kt
|
||||
|
||||
|
||||
open expect class BaseAlias() : Base1
|
||||
|
||||
open class Child: BaseAlias()
|
||||
|
||||
// MODULE: lib-jvm(dep)()(lib-common)
|
||||
// FILE: lib-jvm.kt
|
||||
|
||||
actual typealias BaseAlias = Base2
|
||||
|
||||
// MODULE: main(lib-jvm, dep)
|
||||
// FILE: main.kt
|
||||
|
||||
class InMain : Child()
|
||||
|
||||
fun box() : String {
|
||||
return InMain().prop + InMain().foo()
|
||||
}
|
||||
Reference in New Issue
Block a user