JetBrains-Research/reflekt

Check wrong cases

nbirillo opened this issue · 1 comments

These cases have errors for the current version with bytecode. We need to check them in the current version, also add tests for them

  1. Function:
fun foo(): Boolean {
    println("public second example foo")
    return true
}

Query:

SmartReflekt.functions<() -> Boolean>().filter { it.isTopLevel && it.name == "foo" }.resolve()
  1. Function:
fun <T> foo(): List<T>

Query:

SmartReflekt.functions<Function0<List<*>>>().filter { it.isTopLevel && it.name == "foo" }.resolve()
  1. Enum case

Closed according to PR#50