Global `val` properties with `@SharedImmutable` wo...
# kotlin-native
k
Global
val
properties with
@SharedImmutable
work as expected, but if you use a
var
, the
@SharedImmutable
doesn’t apply. Logically that makes sense, but it seems like that may be confusing in situations where people try it. I think it would be better to have it frozen, or maybe a compiler failure, but right now it seems like the annotation is simply ignored. Thoughts?
b
should at least be a compiler warning
that you have to suppress
2