mirror of
https://github.com/dart-lang/sdk
synced 2024-09-19 23:31:42 +00:00
b237cf1037
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>
15 lines
414 B
Dart
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");
|
|
}
|