a25ee6adc5
Change-Id: I9ec3a68c392c533ed9e766b1233ea9a672a9f5cc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/149041 Auto-Submit: Bob Nystrom <rnystrom@google.com> Commit-Queue: Srujan Gaddam <srujzs@google.com> Reviewed-by: Srujan Gaddam <srujzs@google.com>
18 lines
565 B
Dart
18 lines
565 B
Dart
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
main() {
|
|
L: while (false) {
|
|
if (true) break L;
|
|
}
|
|
// Illegal: L is out of scope.
|
|
continue L;
|
|
//^^^^^^^^
|
|
// [analyzer] SYNTACTIC_ERROR.CONTINUE_OUTSIDE_OF_LOOP
|
|
// [cfe] A continue statement can't be used outside of a loop or switch statement.
|
|
// ^
|
|
// [analyzer] COMPILE_TIME_ERROR.LABEL_UNDEFINED
|
|
// [cfe] Can't find label 'L'.
|
|
}
|