dart-sdk/tests/language/const_escape_frog_test.dart
hausner@google.com 8fa41d5d55 Compile error on const instance variables
Another little step towards full spec compliance.

Issue 11051

R=srdjan@google.com

Review URL: https://codereview.chromium.org//25873005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@28234 260f80e4-7a28-3924-810f-c04153c831b5
2013-10-03 18:17:16 +00:00

19 lines
547 B
Dart

// Copyright (c) 2013, 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.
// Test division by power of two.
// Test that results before and after optimization are the same.
import "package:expect/expect.dart";
class Foo {
final Bar<Foo> bar = const Bar/* comment here use to trigger bug 323 */();
}
class Bar<T extends Foo> {
const Bar();
}
main() {
Expect.equals(new Foo().bar, const Bar());
}