Minor: merge HierarchicalExpectActualMatchingTests into MultiplatformHighlightingTests

This commit is contained in:
Dmitry Savvinov
2020-01-16 16:30:45 +03:00
parent 9eab75650c
commit 8fcd98639d
70 changed files with 75 additions and 109 deletions
@@ -0,0 +1,7 @@
package sample
fun main() {
A().foo()
// fromLeft should be resolved, because 'left' comes first in dependencies order!
A().fromLeft()
}
@@ -0,0 +1,8 @@
MODULE top { platform=[JVM, JS, Native] }
MODULE left { platform=[JVM, JS, Native] }
MODULE right { platform=[JVM, JS, Native] }
MODULE bottom { platform=[JVM] }
left -> top { kind=DEPENDS_ON }
right -> top { kind=DEPENDS_ON }
bottom -> left, right { kind=DEPENDS_ON }
@@ -0,0 +1,6 @@
package sample
actual class A /* Left */ {
actual fun foo(): Int = 42
fun fromLeft(): String = ""
}
@@ -0,0 +1,5 @@
package sample
actual class A /* Right */ {
actual fun foo(): Int = 100500
}
@@ -0,0 +1,5 @@
package sample
expect class A {
fun foo(): Int
}