[Raw FIR] Synchronize enum entry building in PSI / light AST modes

This commit is contained in:
Mikhail Glukhikh
2020-01-09 12:44:39 +03:00
parent 65a44e2e20
commit 2b05320ae9
19 changed files with 353 additions and 44 deletions
@@ -0,0 +1,19 @@
// T fun (() -> T).invoke(): T
// │ │
fun <T> run(block: () -> T): T = block()
fun test_1() {
// fun <T> run<Unit>(() -> Unit): Unit
// │
run { return@run }
// fun <T> run<???>(() -> ???): ???
// │
run { return }
}
fun test_2() {
// fun <T> run<Int>(() -> Int): Int
// │ Int
// │ │
run(fun (): Int { return 1 })
}
@@ -0,0 +1,5 @@
fun test() {
// class Array<T>: Any, Cloneable, java/io/Serializable
// │
Array<String>::class
}