Question/feature request #5073
NeilGirdhar
started this conversation in
General
Replies: 1 comment 5 replies
-
Transferring to discussion. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to make the following code produce a narrower type?
It makes sense that the revealed type is
Any
and notX
sincec
has typeC[Any]
and notC[X]
. Is there some placeholder I can put in that means use the top level type? LikeC[TopLevel]
? This would ideally make the revealed typeX
? In this case, typingX
is no problem, but sometimes the type annotations are quite long.Beta Was this translation helpful? Give feedback.
All reactions