KT-13836: fix generation of FQN of secondary constructor when it's called via typealias. Fix #KT-13836
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
object O {
|
||||
val x = "OK"
|
||||
|
||||
operator fun invoke() = x
|
||||
}
|
||||
|
||||
typealias A = O
|
||||
|
||||
fun box(): String = A()
|
||||
@@ -0,0 +1,11 @@
|
||||
class C(val x: String) {
|
||||
constructor(n: Int) : this(n.toString())
|
||||
}
|
||||
|
||||
typealias Alias = C
|
||||
|
||||
fun box(): String {
|
||||
val c = Alias(23)
|
||||
if (c.x != "23") return "fail: $c"
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user