dart-sdk/tests/language_2/const_native_factory_test.dart
Paul Berry b237cf1037 Fix incorrect constructor name in const_native_factory_test
Change-Id: I981ee1f1bb466158ceea19d184b5943e31d78825
Reviewed-on: https://dart-review.googlesource.com/77000
Commit-Queue: Paul Berry <paulberry@google.com>
Auto-Submit: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2018-09-27 23:25:38 +00:00

15 lines
414 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 Cake.BakeMeACake()
native "Cake_BakeMeACake"; /*@compile-error=unspecified*/
}
main() {
var c = const Cake("Sacher");
}