are indicating what the convention is, not what is technically allowed/not allowed. what you wrote initially was perfectly valid kotlin, just not what you wanted 🙂
google 1
👍 1
d
dimsuz
06/01/2022, 10:42 AM
convention is to have the default expression just be
modifier: Modifier = Modifier
Oh, I guess I'll add it to the detekt-rules-compose as a new (togglable) rule.
UPD: turns out there was already an issue-request for such a rule