Files
sdk/pkg/front_end/testcases/general/constructor_patch/main.dart
T
Johnni Winther fb137ff73e [cfe] Patch declarations through fragments
Change-Id: I942f2b0b08e69012140d4671722411c86b073504
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/413681
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2025-03-07 05:37:00 -08:00

17 lines
419 B
Dart

// Copyright (c) 2020, 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.
import 'dart:test';
test() {
new Class._private(); // Error
new Class._privateInjected(); // Error
new Class3(); // Error
}
main() {
new Class.generative();
const Class.constGenerative();
}