Skip to content

CFE disallows the re-exported use of Record class in legacy libraries #50511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chloestefantsova opened this issue Nov 18, 2022 · 1 comment
Closed
Assignees
Labels
legacy-area-front-end Legacy: Use area-dart-model instead.

Comments

@chloestefantsova
Copy link
Contributor

The following example should be accepted by the CFE.

// asdf_lib.dart
export 'dart:core' show Record;
// asdf.dart
import './asdf_lib.dart';

Record foo() => throw 0;
@chloestefantsova chloestefantsova added the legacy-area-front-end Legacy: Use area-dart-model instead. label Nov 18, 2022
@chloestefantsova chloestefantsova self-assigned this Nov 21, 2022
@chloestefantsova
Copy link
Contributor Author

The requirement for the visibility of Record has changed, and now it should be visible in the legacy programs, imported directly or indirectly, if the experiment is enabled for the entire program: #50317 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy-area-front-end Legacy: Use area-dart-model instead.
Projects
None yet
Development

No branches or pull requests

1 participant