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,5 @@
// DISABLE-ERRORS
expect class My() {
fun test()
}
@@ -0,0 +1,5 @@
// DISABLE-ERRORS
expect class My() {
fun test()
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>My {
actual constructor()
}
@@ -0,0 +1,8 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class My {
actual constructor()
actual fun test() {}
}