Add more tests for KT-20262

This commit is contained in:
Mikhail Glukhikh
2017-09-15 15:03:45 +03:00
committed by Stanislav Erokhin
parent 77f625bfc8
commit 2fe7cc5534
9 changed files with 26 additions and 0 deletions
@@ -0,0 +1,3 @@
// "Replace with 'expect'" "true"
<caret>header fun foo(): Int
@@ -0,0 +1,3 @@
// "Replace with 'expect'" "true"
expect fun foo(): Int
@@ -0,0 +1 @@
impl fun foo() = 42
@@ -0,0 +1 @@
impl fun foo() = 42
@@ -0,0 +1 @@
header fun foo(): Int
@@ -0,0 +1 @@
header fun foo(): Int
@@ -0,0 +1,3 @@
// "Replace with 'actual'" "true"
<caret>impl fun foo() = 42
@@ -0,0 +1,3 @@
// "Replace with 'actual'" "true"
actual fun foo() = 42
@@ -59,11 +59,21 @@ class QuickFixMultiModuleTest : AbstractQuickFixMultiModuleTest() {
doMultiPlatformTest()
}
@Test
fun testDeprecatedHeaderImpl() {
doMultiPlatformTest()
}
@Test
fun testDeprecatedImpl() {
doMultiPlatformTest()
}
@Test
fun testDeprecatedImplHeader() {
doMultiPlatformTest()
}
@Test
fun testEnum() {
doMultiPlatformTest(impls = "js" to TargetPlatformKind.JavaScript)