Track safe usage of 'unsafe' type parameters #224
Unanswered
KotlinIsland
asked this question in
Ideas
Replies: 1 comment 2 replies
-
is this related to the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's an idea, is it possible to track safe usage of type parameters in potentially unsafe positions?
This code is perfectly safe (although a subtype could change that) and ideally should be allowed.
It would be super interesting to investigate the bounds of what's possible in terms of "safe variance"
Beta Was this translation helpful? Give feedback.
All reactions