[FIR] Fix rendering of NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS

This commit is contained in:
Kirill Rakhman
2023-09-12 13:14:05 +02:00
committed by Space Team
parent 5c38289d60
commit ed4386a962
8 changed files with 8 additions and 8 deletions
@@ -1979,7 +1979,7 @@ object FirErrorsDefaultMessages : BaseDiagnosticRendererFactory() {
map.put(AMBIGUOUS_EXPECTS, "''{0}'' has several compatible expect declarations in modules {1}.", SYMBOL, COLLECTION(MODULE_DATA))
map.put(
NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS,
"Actual class ''{0}'' has no corresponding members for expected class members:{1}",
"''{0}'' has no corresponding members for expected class members:{1}",
SYMBOL,
FirIncompatibleExpectedActualClassScopesRenderer.TEXT
)
@@ -8,7 +8,7 @@ This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/jvm.kt:1:18: error: actual class 'actual interface A : Any' has no corresponding members for expected class members:
compiler/testData/cli/jvm/firMultiplatformCompilationWithError/jvm.kt:1:18: error: 'actual interface A : Any' has no corresponding members for expected class members:
expect fun foo(): Unit
@@ -5,7 +5,7 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/jvm.kt:1:14: error: actual class 'actual class Foo : Any' has no corresponding members for expected class members:
compiler/testData/multiplatform/classScopes/constructorIncorrectSignature/jvm.kt:1:14: error: 'actual class Foo : Any' has no corresponding members for expected class members:
expect constructor(s: String): Foo
@@ -5,7 +5,7 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/jvm.kt:3:14: error: actual class 'actual class Foo : Any' has no corresponding members for expected class members:
compiler/testData/multiplatform/classScopes/functionAndPropertyWithSameName/jvm.kt:3:14: error: 'actual class Foo : Any' has no corresponding members for expected class members:
expect val bar: String
@@ -5,7 +5,7 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/classScopes/missingConstructor/jvm.kt:1:14: error: actual class 'actual class Foo : Any' has no corresponding members for expected class members:
compiler/testData/multiplatform/classScopes/missingConstructor/jvm.kt:1:14: error: 'actual class Foo : Any' has no corresponding members for expected class members:
expect constructor(s: String): Foo
@@ -5,7 +5,7 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/classScopes/missingFunction/jvm.kt:1:14: error: actual class 'actual class Foo : Any' has no corresponding members for expected class members:
compiler/testData/multiplatform/classScopes/missingFunction/jvm.kt:1:14: error: 'actual class Foo : Any' has no corresponding members for expected class members:
expect fun function(s: String): Unit
+1 -1
View File
@@ -5,7 +5,7 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/missingOverload/jvm.kt:1:14: error: actual class 'actual class Foo : Any' has no corresponding members for expected class members:
compiler/testData/multiplatform/missingOverload/jvm.kt:1:14: error: 'actual class Foo : Any' has no corresponding members for expected class members:
expect fun f(a: Any): Unit
@@ -5,7 +5,7 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/jvm.kt:3:18: error: actual class 'actual typealias Writer = Writer' has no corresponding members for expected class members:
compiler/testData/multiplatform/regressions/incompatibleClassScopesWithImplTypeAlias/jvm.kt:3:18: error: 'actual typealias Writer = Writer' has no corresponding members for expected class members:
expect constructor(): Writer