Revert "[FE 1.0] Deprecate declaration of expect and actual in the same module"

This reverts commit b09561c3c3.

It was decided to postpone this warning till 1.9
This is needed to provide proper IDE support

^KT-40904 Open
^KT-55177 Open
This commit is contained in:
Dmitriy Novozhilov
2023-01-17 15:17:53 +02:00
committed by Space Team
parent 9bffec268a
commit 8d728d4f53
18 changed files with 9 additions and 120 deletions
@@ -1,10 +1,11 @@
// FIR_IDENTICAL
// !LANGUAGE: +MultiPlatformProjects
// SKIP_TXT
// Issue: KT-49714
expect <!EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE!>class Counter<!> {
expect class Counter {
operator fun inc(): Counter
operator fun dec(): Counter
}
actual typealias <!EXPECT_AND_ACTUAL_IN_THE_SAME_MODULE!>Counter<!> = Int
actual typealias Counter = Int