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

Test plan for "local function attributes" #38801

Closed
53 of 54 tasks
RikkiGibson opened this issue Sep 23, 2019 · 1 comment
Closed
53 of 54 tasks

Test plan for "local function attributes" #38801

RikkiGibson opened this issue Sep 23, 2019 · 1 comment
Assignees
Labels
Area-Compilers Test Test failures in roslyn-CI Test-Gap Describes a specific feature or scenario that does not have test coverage
Milestone

Comments

@RikkiGibson
Copy link
Contributor

RikkiGibson commented Sep 23, 2019

Championed issue: dotnet/csharplang#1888

IDE:

  • Test interactive typing
  • Start with an attribute
  • Completion
  • Keyword recommendation (extern)

Before merge:

@RikkiGibson
Copy link
Contributor Author

Lower priority: I found that the diagnostics for non-static, extern local functions are not as clear as they could be. It should probably say something like "an 'extern' local function must also be 'static'".

It makes me wonder if there's any point in requiring the 'static' modifier be present. But I did find that instance member methods are allowed to be 'extern', so it seemed like it made things more clear to require it.

class C
{
    void M()
    {
        // Local function 'local()' must declare a body because it is not marked 'static extern'.
        extern void local();
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Test Test failures in roslyn-CI Test-Gap Describes a specific feature or scenario that does not have test coverage
Projects
None yet
Development

No branches or pull requests

4 participants