it seems default parameters for generic types need...
# announcements
c
it seems default parameters for generic types need a space before the equals sign. is this a bug or is it documented somewhere?
y
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
btw, autoformat does not fix it because it parses it wrong
­čśé 1
a
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