blob: ce7bc164cce13f5445264d0622349bc8eb4d8c2d [file] [log] [blame]
// 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 Labels are not included in the induced namespace of a scope;
* instead they have their own dedicated namespace.
* @description Checks that labels and variables do not hide each other and no
* warnings are produced.
* @author iefremov
*/
import "../../../Utils/expect.dart";
main() {
var v = 54;
{
v: 1 + 1;
Expect.equals(54, v);
{
l: 1 + 1;
var l = 45;
Expect.equals(45, l);
}
}
}