Skip to content

dartc doesn't parse labels on separate, adjacent case statements #2440

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

Closed
DartBot opened this issue Apr 4, 2012 · 3 comments
Closed

dartc doesn't parse labels on separate, adjacent case statements #2440

DartBot opened this issue Apr 4, 2012 · 3 comments
Labels
closed-duplicate Closed in favor of an existing report legacy-area-analyzer Use area-devexp instead.
Milestone

Comments

@DartBot
Copy link

DartBot commented Apr 4, 2012

This issue was originally filed by [email protected]


fails on co19 test: Language/11_Statements/11_Labels_A01_t01.dart

 switch(1) {
    K:
    case 2:
    L:
    case 1:
      break;
    case 0:
    M:
    default:
      N: var x = 0;
  }

file:/home/zundel/dart/tests/co19/src/Language/11_Statements/11_Labels_A01_t01.dart:47: Unexpected token 'case'
    46: L:
    47: case 1:
file:/home/zundel/dart/tests/co19/src/Language/11_Statements/11_Labels_A01_t01.dart:47: Unexpected token 'INTEGER_LITERAL' (expected ';')
    46: L:
    47: case 1:
file:/home/zundel/dart/tests/co19/src/Language/11_Statements/11_Labels_A01_t01.dart:51: Unexpected token 'default'
    50: M:
    51: default:
file:/home/zundel/dart/tests/co19/src/Language/11_Statements/11_Labels_A01_t01.dart:51: Unexpected token ':' (expected ';')
    50: M:
    51: default:
Compilation failed with 4 problems.

@kasperl
Copy link

kasperl commented Apr 17, 2012

Removed Area-Compiler label.
Added Area-Analyzer label.

@danrubel
Copy link

danrubel commented Jun 4, 2012

Added this to the M1 milestone.

@DartBot
Copy link
Author

DartBot commented Jun 18, 2012

This comment was originally written by [email protected]


Added Duplicate label.
Marked as being merged into #2149.

@DartBot DartBot added Type-Defect legacy-area-analyzer Use area-devexp instead. closed-duplicate Closed in favor of an existing report labels Jun 18, 2012
@DartBot DartBot added this to the M1 milestone Jun 18, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report legacy-area-analyzer Use area-devexp instead.
Projects
None yet
Development

No branches or pull requests

3 participants