bd769f8fd7
This commit fixes ambiguity problems introduced before in MPP tests with deep supertypes #KT-29636 Fixed
20 lines
545 B
Plaintext
Vendored
20 lines
545 B
Plaintext
Vendored
FILE: common.kt
|
|
<T> public open expect class A {
|
|
public constructor(): super<R|kotlin/Any|>()
|
|
|
|
public open function foo(arg: R|T|): R|kotlin/Unit|
|
|
|
|
}
|
|
public open class B : R|A<kotlin/String>| {
|
|
public constructor(): super<R|A<kotlin/String>|>()
|
|
|
|
}
|
|
public open class C : R|B| {
|
|
public constructor(): super<R|B|>()
|
|
|
|
public open function bar(arg: R|kotlin/CharSequence|): R|kotlin/String| {
|
|
return@@@bar <Unresolved name: arg>#.<Unresolved name: toString>#()
|
|
}
|
|
|
|
}
|