MMauro

joined 2 years ago
[–] MMauro@feddit.it 1 points 9 months ago

Uh. Probably not exactly your case, but I managed to "reproduce" them.

The first case is easy if you just override the setter of a property, and is more a feature of the language rather than a bug.

The second case is more tricky, but by using a generic delegate you can manage to trick it by doing an unchecked cast. Got the same warning in IntelliJ as well.

Link: https://pl.kotl.in/pIt-uHw7d

[–] MMauro@feddit.it 1 points 9 months ago (2 children)

Interesting. Care to share? I think they fixed a few of those issues with K2. Did you find something new or is it known?

[–] MMauro@feddit.it 1 points 9 months ago (4 children)

With no platform types involved?

[–] MMauro@feddit.it 3 points 2 years ago

Agreed. Used it all the time on Boost for Reddit, that's the only thing that I miss on the Beta