Created
September 15, 2021 06:21
-
-
Save ejsmith/8074211dfdb34c4412e1d3b842f96398 to your computer and use it in GitHub Desktop.
Rosyln .NET 6 RC1 bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq.Expressions; | |
using System.Reflection; | |
SomeMethod((Employee e) => e.Name); | |
void SomeMethod(Field field) {} | |
public record Employee(string Name); | |
public class Field | |
{ | |
public static implicit operator Field(Expression expression) => null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code works in .NET 5, but blows up Roslyn in .NET 6 RC1.