[Expect/Actual] Add testdata on hierarchical expect/actual matching
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
// Note that here we have no ambiguity, becuase we don't consider
|
||||
// declarations without 'expect' as potential weakly-compatible 'expect'-counterpart
|
||||
actual class A
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
MODULE right { platform=[JVM, Native] }
|
||||
MODULE left { platform=[JVM, JS] }
|
||||
MODULE bottom { platform=[JVM] }
|
||||
|
||||
bottom -> right { kind=DEPENDS_ON }
|
||||
bottom -> left { kind=DEPENDS_ON }
|
||||
+1
@@ -0,0 +1 @@
|
||||
expect class <!AMBIGUOUS_ACTUALS("Class 'A'", "bottom.kt, right.kt")!>A<!>
|
||||
+1
@@ -0,0 +1 @@
|
||||
class A
|
||||
Reference in New Issue
Block a user