Files
sdk/tests/language/const_native_factory_test.dart
T
hausner@google.com f9ab2fdf78 Disallow const native factories
We removed the only user of const native factory methods, so remove
the hack in the VM.

Issue 6662.
Review URL: https://codereview.chromium.org//11414019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14993 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-16 00:57:09 +00:00

15 lines
401 B
Dart

// Copyright (c) 2012, 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.
class Cake {
final name;
const Cake(this.name);
const factory BakeMeACake() native "Cake_BakeMeACake"; /// 01: compile-time error
}
main() {
var c = const Cake("Sacher");
}