[FIR-TEST] Move analysis tests to separate module
This commit is contained in:
+23
@@ -0,0 +1,23 @@
|
||||
// Copy of IR test
|
||||
|
||||
object A
|
||||
object B
|
||||
|
||||
interface IFoo {
|
||||
val A.foo: B get() = B
|
||||
}
|
||||
|
||||
interface IInvoke {
|
||||
operator fun B.invoke() = 42
|
||||
}
|
||||
|
||||
fun test(fooImpl: IFoo, invokeImpl: IInvoke) {
|
||||
with(A) {
|
||||
with(fooImpl) {
|
||||
foo
|
||||
with(invokeImpl) {
|
||||
foo()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user