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() {}
|
||||
Reference in New Issue
Block a user