-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).legacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.
Description
The specification does not permit the string in const Symbol(string) to construct a private symbol. The new constant evaluator enforces this limitation, causing two tests, language_2/mock_writable_final_private_field_test and language_2/vm/reflect_core_vm_test, to fail.
The issue is discussed further in #34904.
We need to decide before enabling the new constant evaluator whether this use case is essential enough to loosen up the compile-time verification of const Symbol (or, alternatively, to allow = at the end of symbol literals). The change to do the former is here: https://dart-review.googlesource.com/c/sdk/+/97927
Metadata
Metadata
Assignees
Labels
area-languageDart language related items (some items might be better tracked at github.com/dart-lang/language).Dart language related items (some items might be better tracked at github.com/dart-lang/language).legacy-area-front-endLegacy: Use area-dart-model instead.Legacy: Use area-dart-model instead.