Support secondary constructors in decompiled text

Build cls stubs for secondary constructors
This commit is contained in:
Pavel V. Talanov
2015-03-12 13:06:38 +03:00
parent 026e35b6d0
commit c0a031eafe
15 changed files with 351 additions and 28 deletions
@@ -0,0 +1,27 @@
package test
class SecondaryConstructors(x: Boolean) {
init {
}
anno constructor(x: String) : this(x == "abc") {
}
init {
}
private constructor(x: Int) : this(x < 0) {
}
inner class Inner<T : String, G : Int> where G : Number {
constructor(x: T, g: G) {
}
}
class Nested {
anno constructor(z: Int) {}
internal constructor() {}
}
}
annotation class anno