Change Signature: Support refactoring of primary/secondary constructor by delegation call reference

This commit is contained in:
Alexey Sedunov
2015-03-18 12:29:31 +03:00
parent 173a28a25e
commit 5c7debbf88
14 changed files with 247 additions and 14 deletions
@@ -0,0 +1,21 @@
open class A(s: String) {
constructor(a: Int) : this("foo") {
}
}
open class B: A {
constructor(a: Int) : super("foo") {
}
}
open class C: A {
constructor(a: Int) : super("foo") {
}
}
fun test() {
A("foo")
}