Files
sdk/pkg/front_end/testcases/general/constructor_patch/main.dart
T
Johnni Winther 70fc3c3e14 [cfe] Add private injected constructors to origin constructor scope
This normalizes the handling of private injected constructors to
how private injected members are handled, making them available in
the origin library as well as in other patch libraries for the same
origin library.

Change-Id: I917652795c04c099412248c074ea50553f9f2676
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303361
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Jens Johansen <jensj@google.com>
2023-05-16 06:40:48 +00:00

16 lines
394 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
}
main() {
new Class.generative();
const Class.constGenerative();
}