Merge together MultiplatformHighlighting and MultiplatformAnalysis tests

Basically, the former uses an old quickly-scrapped infrastructure,
which were not applicable for HMPP, so  the latter tests were written.

So, both check for one and the same thing (highlighting in MPP projects),
but MultiplatformAnalysisTest is more modern,
and has a lot of inconvenient stuff in MultiplatformHighlighting fixed
^KT-43116 Fixed
This commit is contained in:
Alexander Dudinsky
2020-12-22 12:29:43 +03:00
parent 73576c80e4
commit 10a5727260
123 changed files with 293 additions and 443 deletions
@@ -1,6 +1,6 @@
package sample
fun main() {
fun <!LINE_MARKER!>main<!>() {
A().foo()
// fromLeft should be resolved, because 'left' comes first in dependencies order!
A().fromLeft()
@@ -1,6 +1,6 @@
package sample
actual class A /* Left */ {
actual fun foo(): Int = 42
actual class <!LINE_MARKER("descr='Has declaration in common module'")!>A<!> /* Left */ {
actual fun <!LINE_MARKER("descr='Has declaration in common module'")!>foo<!>(): Int = 42
fun fromLeft(): String = ""
}
@@ -1,5 +1,5 @@
package sample
actual class A /* Right */ {
actual fun foo(): Int = 100500
actual class <!LINE_MARKER("descr='Has declaration in common module'")!>A<!> /* Right */ {
actual fun <!LINE_MARKER("descr='Has declaration in common module'")!>foo<!>(): Int = 100500
}
@@ -1,5 +1,5 @@
package sample
expect class A {
fun foo(): Int
expect class <!LINE_MARKER("descr='Has actuals in common (2 modules)'")!>A<!> {
fun <!LINE_MARKER("descr='Has actuals in common (2 modules)'")!>foo<!>(): Int
}