[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:
@@ -5,9 +5,9 @@
|
||||
// SKIP_TXT
|
||||
// Issue: KT-49714
|
||||
|
||||
expect class Counter {
|
||||
expect <!EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE!>class Counter<!> {
|
||||
operator fun inc(): Counter
|
||||
operator fun dec(): Counter
|
||||
}
|
||||
|
||||
actual typealias Counter = Int
|
||||
actual typealias <!EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE!>Counter<!> = Int
|
||||
|
||||
Reference in New Issue
Block a user