'ConstructorDescriptor#getConstructedClass()' should be used to obtain a descriptor for constructed class
(it can be different from 'getContainingDeclaration()' in case of type alias constructor). KT-15109 Subclass from a type alias with named parameter in constructor will produce compiler exception KT-15192 Compiler crashes on certain companion objects: "Error generating constructors of class Companion with kind IMPLEMENTATION"
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
open class A(private val s: String = "") {
|
||||
fun foo() = s
|
||||
}
|
||||
|
||||
typealias B = A
|
||||
|
||||
class C : B(s = "OK")
|
||||
|
||||
fun box() = C().foo()
|
||||
Reference in New Issue
Block a user