Secondary constructors delegation calls and body resolve
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
||||
open class B(x: Double) {
|
||||
constructor(x: Int): this(1.0) {}
|
||||
constructor(x: String): this(1.0) {}
|
||||
}
|
||||
trait C
|
||||
class A : <!SUPERTYPE_NOT_INITIALIZED!>B<!>, C {
|
||||
constructor(): <!NONE_APPLICABLE!>super<!>(' ') { }
|
||||
constructor(x: Int) <!NONE_APPLICABLE!><!>{ }
|
||||
}
|
||||
Reference in New Issue
Block a user