Create actual fix: handle companions correctly #KT-21114 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-12-29 20:06:44 +03:00
parent f46fa263ef
commit 5abb9dd23e
7 changed files with 48 additions and 2 deletions
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class WithCompanion {
companion object {
fun foo()
}
}
@@ -0,0 +1,7 @@
// DISABLE-ERRORS
expect class WithCompanion {
companion object {
fun foo()
}
}
@@ -0,0 +1,6 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class <caret>WithCompanion {
}
@@ -0,0 +1,9 @@
// "Add missing actual members" "true"
// DISABLE-ERRORS
actual class WithCompanion {
actual companion object {
actual fun foo() {}
}
}