Report NO_ACTUAL_FOR_EXPECT etc. on relevant declaration

So #KT-20398 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-10-02 16:44:42 +03:00
parent 472e6f462f
commit 8a3fed15f8
17 changed files with 182 additions and 108 deletions
+2 -2
View File
@@ -5,12 +5,12 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/missingOverload/common.kt:7:1: error: expected function 'g' has no actual declaration in module
compiler/testData/multiplatform/missingOverload/common.kt:7:13: error: expected function 'g' has no actual declaration in module
The following declaration is incompatible because parameter types are different:
public actual fun g(a: Any): Unit
expect fun g(s: String)
^
^
compiler/testData/multiplatform/missingOverload/jvm.kt:1:14: error: actual class 'Foo' has no corresponding members for expected class members:
public final expect fun f(a: Any): Unit