KT-13735 NoSuchMethodError for generic typealias acces
Use underlying constructor descriptor for type alias constructor code generation.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Cell<T>(val x: T)
|
||||
|
||||
typealias StringCell = Cell<String>
|
||||
|
||||
fun box(): String =
|
||||
StringCell("O").x + Cell("K").x
|
||||
@@ -0,0 +1,10 @@
|
||||
class Outer private constructor(public val x: String) {
|
||||
class Nested {
|
||||
fun foo() = OuterAlias("OK")
|
||||
}
|
||||
}
|
||||
|
||||
typealias OuterAlias = Outer
|
||||
|
||||
fun box(): String =
|
||||
Outer.Nested().foo().x
|
||||
Reference in New Issue
Block a user