Add actual: handle primary & secondary constructors as compatible

So #KT-23686 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-06-27 19:02:37 +03:00
parent 082c3e6767
commit dd0b267531
15 changed files with 107 additions and 12 deletions
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
constructor(b: String, a: Int)
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class My(a: Int, b: String) {
fun test()
constructor(b: String, a: Int)
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor(b: String, a: Int)
}
@@ -0,0 +1,8 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My actual constructor(a: Int, b: String) {
actual constructor(b: String, a: Int)
actual fun test() {}
}