New MPP highlighting test: check also line markers (KT-27494)

We have to do complex operations with tags, because otherwise
tags in different files prevent correct analysis of the current one
This commit is contained in:
Mikhail Glukhikh
2018-10-31 17:51:05 +03:00
parent 9be23bb21c
commit 62e9eae48d
3 changed files with 37 additions and 16 deletions
@@ -1,3 +1,3 @@
expect class <error descr="[NO_ACTUAL_FOR_EXPECT] Expected class 'My' has no actual declaration in module first_jsMain for JS">My</error> {
fun foo()
expect class <error descr="[NO_ACTUAL_FOR_EXPECT] Expected class 'My' has no actual declaration in module first_jsMain for JS"><lineMarker>My</lineMarker></error> {
fun <lineMarker>foo</lineMarker>()
}
@@ -1,5 +1,5 @@
actual class My {
actual fun foo() {}
actual class <lineMarker>My</lineMarker> {
actual fun <lineMarker>foo</lineMarker>() {}
actual fun <error descr="[ACTUAL_WITHOUT_EXPECT] Actual function 'bar' has no corresponding expected declaration">bar</error>() {}
}