it seems default parameters for generic types need a space before the equals sign. is this a bug or is it documented somewhere?
y
Youssef Shoaib [MOD]
03/21/2021, 1:34 PM
IIRC the Kotlin team made the call to not fix that in the parser because it's highly unlikely that anyone would use the equal sign with bad formatting like that
c
christophsturm
03/21/2021, 1:35 PM
btw, autoformat does not fix it because it parses it wrong
😂 1
a
Alexey Belkov [JB]
03/22/2021, 3:52 PM
It's probably documented somewhere in the Kotlin spec's grammar. It's not a bug, just a parser limitation. BTW there is a similar issue https://youtrack.jetbrains.com/issue/KT-42209