Simplify diagnostic message for ACTUAL_MISSING
#KT-21939 Fixed
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// "Add 'actual' modifier" "true"
|
||||
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||
// ERROR: Declaration must be marked with 'actual'
|
||||
|
||||
class <caret>Foo
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add 'actual' modifier" "true"
|
||||
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||
// ERROR: Declaration must be marked with 'actual'
|
||||
|
||||
actual class Foo
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Add 'actual' modifier" "true"
|
||||
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||
// ERROR: Declaration must be marked with 'actual'
|
||||
|
||||
actual class Foo {
|
||||
fun <caret>foo() {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// "Add 'actual' modifier" "true"
|
||||
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||
// ERROR: Declaration must be marked with 'actual'
|
||||
|
||||
actual class Foo {
|
||||
actual fun foo() {}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Add 'actual' modifier" "true"
|
||||
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||
// ERROR: Declaration must be marked with 'actual'
|
||||
|
||||
fun <caret>foo() {}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// "Add 'actual' modifier" "true"
|
||||
// ERROR: Declaration should be marked with 'actual' (suppress with -Xno-check-actual)
|
||||
// ERROR: Declaration must be marked with 'actual'
|
||||
|
||||
actual fun foo() {}
|
||||
|
||||
Reference in New Issue
Block a user