Add tests on quick fix that adds 'actual' to platform declaration
#KT-18454
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
expect class Foo
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
expect class Foo
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// "Add 'actual' modifier" "true"
|
||||||
|
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||||
|
|
||||||
|
class <caret>Foo
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// "Add 'actual' modifier" "true"
|
||||||
|
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||||
|
|
||||||
|
actual class Foo
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
expect class Foo {
|
||||||
|
fun foo()
|
||||||
|
}
|
||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
expect class Foo {
|
||||||
|
fun foo()
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// "Add 'actual' modifier" "true"
|
||||||
|
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||||
|
|
||||||
|
actual class Foo {
|
||||||
|
fun <caret>foo() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
// "Add 'actual' modifier" "true"
|
||||||
|
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||||
|
|
||||||
|
actual class Foo {
|
||||||
|
actual fun foo() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
expect fun foo()
|
||||||
+1
@@ -0,0 +1 @@
|
|||||||
|
expect fun foo()
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// "Add 'actual' modifier" "true"
|
||||||
|
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||||
|
|
||||||
|
fun <caret>foo() {}
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
// "Add 'actual' modifier" "true"
|
||||||
|
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||||
|
|
||||||
|
actual fun foo() {}
|
||||||
@@ -189,4 +189,13 @@ class QuickFixMultiModuleTest : AbstractQuickFixMultiModuleTest() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testImplementMembersInImplClassNonImplInheritor() = doMultiPlatformTest()
|
fun testImplementMembersInImplClassNonImplInheritor() = doMultiPlatformTest()
|
||||||
}
|
|
||||||
|
@Test
|
||||||
|
fun testAddActualToClass() = doMultiPlatformTest()
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun testAddActualToClassMember() = doMultiPlatformTest()
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun testAddActualToTopLevelMember() = doMultiPlatformTest()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user