Skip to content

Commit

Permalink
Add a regression test for bug #587
Browse files Browse the repository at this point in the history
  • Loading branch information
smanilov committed Jun 15, 2016
1 parent 5a0353b commit 715c845
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Copyright (c) 2016, 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.

// Dart test for testing redefinition of reserved names as static const fields.
// Bug #587.

import "package:expect/expect.dart";

class Field {
static const name = 'Foo';
}

class StaticConstFieldReservedNameTest {
static testMain() {
Expect.equals('Foo', Field.name);
}
}

void main() {
StaticConstFieldReservedNameTest.testMain();
}

0 comments on commit 715c845

Please sign in to comment.