Ok, this is weird. This code doesn't compile (k2.0...
# compiler
j
Ok, this is weird. This code doesn't compile (k2.0.21):
Copy code
enum class E(val value: String){
    header("header")
}
e
j
thanks!
e
until you can upgrade to a fixed kotlin version, you can escape the keyword e.g. ``header``; that's what I did for kotlinpoet https://github.com/square/kotlinpoet/pull/1248
👍 1