Report some actual declaration problems on declaration name

Related to KT-20398
This commit is contained in:
Mikhail Glukhikh
2017-10-02 13:26:39 +03:00
parent 5b7c3ee655
commit 472e6f462f
7 changed files with 27 additions and 13 deletions
@@ -5,6 +5,6 @@ Output:
-- JVM --
Exit code: COMPILATION_ERROR
Output:
compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/jvm.kt:3:1: error: declaration should be marked with 'actual' (suppress with -Xno-check-actual)
compiler/testData/multiplatform/simpleNoImplKeywordOnTopLevelFunction/jvm.kt:3:5: error: declaration should be marked with 'actual' (suppress with -Xno-check-actual)
fun foo(s: String): Array<CharSequence?> = arrayOf(s)
^
^