[FE 1.0] Issue a warning if expect and actual are declared in the same module
The commit is based on b09561c3c3
Co-authored-by: Dmitriy Novozhilov <dmitriy.novozhilov@jetbrains.com>
^KT-40904 Fixed
^KT-55177 Fixed
Review: https://jetbrains.team/p/kt/reviews/8731
True negative test already exist:
`compiler/testData/diagnostics/tests/multiplatform/hmpp/multiplatformCompositeAnalysis/intermediateWithActualAndExpect.kt`
This commit is contained in:
+2
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE")
|
||||
|
||||
package test
|
||||
|
||||
@Suppress("INLINE_CLASS_DEPRECATED", "EXPERIMENTAL_FEATURE_WARNING")
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
@file:Suppress("EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE")
|
||||
|
||||
package test
|
||||
|
||||
@kotlin.jvm.JvmInline
|
||||
|
||||
Reference in New Issue
Block a user