Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

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
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report
Milestone

Comments

@DartBot
Copy link

DartBot commented Apr 4, 2012

This issue was originally filed by zundel@google.com


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 zundel@google.com


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

@DartBot DartBot added Type-Defect area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. 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.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

3 participants