Add tests on quick fix that adds 'actual' to platform declaration

#KT-18454
This commit is contained in:
Alexander Udalov
2017-09-19 14:27:36 +03:00
parent 60430828cf
commit 7f5b9b1760
13 changed files with 48 additions and 1 deletions
@@ -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()
}
@@ -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()
@@ -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() {}