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

pub/yaml_test and switch/case #48

Closed
DartBot opened this issue Jun 5, 2015 · 2 comments
Closed

pub/yaml_test and switch/case #48

DartBot opened this issue Jun 5, 2015 · 2 comments
Assignees
Labels
closed-stale Closed as the issue or PR is assumed stale type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/384794?v=3" align="left" width="96" height="96"hspace="10"> Issue by scheglov
Originally opened as dart-lang/sdk#3539


According to spec "11.8 Switch" - "It is a compile-time error if the expressions ek are not
compile-time constants, of type int or String, for all k 2 1::n.".

But fields in _Parser are not declared as "int" or "String".
So, this test will fail when we will enforce int/String in Analyser/Editor.

@DartBot DartBot added type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) Priority-Medium closed-stale Closed as the issue or PR is assumed stale labels Jun 5, 2015
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent


Set owner to @nex3.
Added Triaged label.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/384794?v=3" align="left" width="48" height="48"hspace="10"> Comment by scheglov


Spec 0.11 allows constants of any type in switch/case.


Added AssumedStale label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-stale Closed as the issue or PR is assumed stale type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants