You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tagging @gafter@jcouv . Not sure what's up with VB here, but it's super weird. Is there a way in VB to tell if a tuple symbol is 'constructed' and what it was constructed from?
@CyrusNajmabadi Just to let you know: at the moment, issue #20648 for VB isn't prioritized.
If the current VB API behavior blocks your work (ie. there is no way to achieve the desired language-independent abstraction) then please let me know. We'll discuss prioritization with Jared.
Given the following code:
The VB semantic model till produce a type symbol for that tuple like so:
However, strangely, that type symbol will have itself as its 'ConstructedFrom'. i.e.:
This is due to this logic here in tupletypesymbol.vb
roslyn/src/Compilers/VisualBasic/Portable/Symbols/Tuples/TupleTypeSymbol.vb
Lines 220 to 224 in c5e8e95
This does not match C# behavior. In C#, if we use the corresponding code:
We can see the appropriate 'ConstructedFrom' symbol:
The text was updated successfully, but these errors were encountered: