/*
 * 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.
 */
/**
 * @assertion Let sc be a continue statement. If sc is of the form continue L;,
 * then let sE be the the innermost labeled do, for or while statement or case
 * clause with label L enclosing sc. If sc is of the form continue; then let sE
 * be the innermost do, for or while statement enclosing sc.
 * It is a compile-time error if no such statement or case clause sE exists
 * within the innermost function in which sc occurs.
 * @description Checks that it is a compile-time error if a 'continue L;'
 * statement occurs in a case clause of switch statement with label L and there
 * is no another inclosing statement with label L.
 * @compile-error
 * @author vasya
 */


main() {
  var x = 1;
  L:
  switch (x) {
    case 1:
      print("x=$x");
      x = 0;
      continue L;
    default:
      x = 2;
  }
  print("x=$x");
  print("Ok");
}

/*
 * 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.
 */
/**
 * @assertion Let sc be a continue statement. If sc is of the form continue L;,
 * then let sE be the the innermost labeled do, for or while statement or case
 * clause with label L enclosing sc. If sc is of the form continue; then let sE
 * be the innermost do, for or while statement enclosing sc.
 * It is a compile-time error if no such statement or case clause sE exists
 * within the innermost function in which sc occurs.
 * @description Checks that it is a compile-time error if a 'continue L;'
 * statement occurs in a case clause of switch statement with label L and there
 * is no another enclosing statement with label L.
 * @compile-error
 * @author vasya
 * @issue 42593
 */

main() {
  var x = 1;
  L:
  switch (x) {
    case 1:
      x = 0;
      continue L;
    default:
      x = 2;
  }
}

Debug output removed and issue number added
Debug output removed and issue number added
