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

Local function should not be static #965

Closed
DartBot opened this issue Dec 26, 2011 · 4 comments
Closed

Local function should not be static #965

DartBot opened this issue Dec 26, 2011 · 4 comments
Assignees

Comments

@DartBot
Copy link

DartBot commented Dec 26, 2011

This issue was originally filed by ms...@unipro.ru


What steps will reproduce the problem?
Run the following test:
f() {
  static localFunction() {}
}

main() {
  f();
}

What is the expected output? What do you see instead?
Expected: compile-time error
Actual: static warning: no such type "static"

What version of the product are you using? On what operating system?
dartc r2810, Ubuntu 10.04

Please provide any additional information below.
The Language Specification in the section 6.1 states: "It is a compile-time error to preface a function declaration with the built-in
identifier static."

@dgrove
Copy link
Contributor

dgrove commented Jan 2, 2012

Added Area-Compiler, Triaged labels.

@scheglov
Copy link
Contributor

Set owner to @scheglov.
Added Started label.

@scheglov
Copy link
Contributor

@scheglov
Copy link
Contributor

Added Fixed label.

This issue was closed.
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

3 participants