How can I get data flow analysis to work in Kotlin...
# intellij
k
How can I get data flow analysis to work in Kotlin? For example, if I put my cursor on the
a
in the line starting
val b
, and right click "Analyze code", "Data flow to here" is greyed out. If I do the exact same thing in Java, it works. I'm using version 2024.3.6.
Copy code
fun main(args: Array<String>) {
    val a = args.size
    val b = args[a - 1]
}
a
Works for me with 2025.2. I guess, you have K2 mode with 24.3 where the action was not yet implemented