Closed
Description
<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.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
DartBot commentedon 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 commentedon 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.
Skip dartanalyzer if there are no dart files in the package. Fixes da…