Skip to content

pub/yaml_test and switch/case #48

Closed
@DartBot

Description

@DartBot

<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.

Activity

added
type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)
closed-staleClosed as the issue or PR is assumed stale
on Jun 5, 2015
DartBot

DartBot commented on Jun 5, 2015

@DartBot
Author

<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

DartBot commented on Jun 5, 2015

@DartBot
Author

<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.

added a commit that references this issue on Nov 15, 2019
4ef75bb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

closed-staleClosed as the issue or PR is assumed staletype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @nex3@DartBot

      Issue actions

        pub/yaml_test and switch/case · Issue #48 · dart-lang/pub