Replies: 2 comments
-
Forgive me, but even having read the referenced issue #2926 this code makes no sense to me. Is it a typo? Or what exactly is this doing? class Outer
{
public class Inner1 : Outer {}
public class Inner2<T> : Outer {}
}
int M1(Outer o) => o switch
{
new Inner1(); // Binds to Outer
new Inner2<int>();
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Typo. Fixed. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-11-11.md
Agenda:
Beta Was this translation helpful? Give feedback.
All reactions