KT-13735 NoSuchMethodError for generic typealias acces

Use underlying constructor descriptor for type alias constructor code generation.
This commit is contained in:
Dmitry Petrov
2016-09-06 13:03:51 +03:00
parent 727ff15af3
commit f2b8569b4b
4 changed files with 32 additions and 0 deletions
@@ -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