Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate InAttribute for .NET Standard 1.0 #97

Open
AlexRadch opened this issue Feb 10, 2024 · 0 comments
Open

Generate InAttribute for .NET Standard 1.0 #97

AlexRadch opened this issue Feb 10, 2024 · 0 comments

Comments

@AlexRadch
Copy link

Reproduction Steps

Can not compile the next code for .NET Standard 1.0 without InAttribute.

public static class Foo
{
    public static ref readonly object GetPinnableReference(this object bar) => throw new();
}

Expected Behavior

Successful compilation.

Actual Behavior

Next compiler error

Error CS0518 Predefined type 'System.Runtime.InteropServices.InAttribute' is not defined or imported (netstandard1.0)

System info

  • PolySharp NuGet version LAST STABLE
  • Operating system version Windows 10
  • Visual Studio version LAST STABLE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant