Skip to content

Block-scoped type narrowing with the is operator #9136

Discussion options

You must be logged in to vote

Unfortunately this would break existing code as if the type of the variable changes within a scope then all method resolution within that scope is impacted.

Replies: 3 comments 16 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@BalassaMarton
Comment options

@HaloFour
Comment options

@BalassaMarton
Comment options

@HaloFour
Comment options

@BalassaMarton
Comment options

Answer selected by BalassaMarton
Comment options

You must be logged in to vote
4 replies
@HaloFour
Comment options

@miyu
Comment options

@HaloFour
Comment options

@BalassaMarton
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants