Lost a couple hours on this one. The following cod...
# kotlin-native
r
Lost a couple hours on this one. The following code fails to compile on native in 1.3.41:
Copy code
fun main() {
    val label = "hello"
    val lambda: suspend () -> String = { label }
}
Apparently the compiler chokes on a variable named
label
being passed into a suspend lambda. The problem goes away if a different name than
label
is used. I’d toss it in youtrack but it seems to already be fixed in the 1.3.50 eap.
🤔 3
s
lol interesting
s
Anyway thanks for the report!
(this was fixed accidentally).
😂 5