mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
8fa41d5d55
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
19 lines
547 B
Dart
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());
|
|
}
|