[FIR-TEST] Move analysis tests to separate module

This commit is contained in:
Dmitriy Novozhilov
2020-03-18 15:10:46 +03:00
parent 3a479d5d16
commit cc07ae96b3
1477 changed files with 1001 additions and 980 deletions
@@ -0,0 +1,23 @@
class A {
val bar: Int = 1
}
val bar = 1
val A.baz: Int get() = 1
fun foo1(x: () -> Int) {}
fun foo2(x: (A) -> Int) {}
fun <R> foo3(x: () -> R) {}
fun <T, R> foo4(x: (T) -> R) {}
fun main() {
foo1(::bar)
foo2(A::bar)
foo2(A::baz)
foo3(::bar)
foo4(A::bar)
foo4(A::baz)
}