-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onfeature-wildcard-variablesImplementation of the wildcard variables featureImplementation of the wildcard variables featurelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
As per dart-lang/language#3799, import prefixes named _ are non-binding but will provide access to the non-private extensions in that library.
// a.dart
extension ExtendedString on String {
bool get isBlank => trim().isEmpty;
}// b.dart
import 'a.dart' as _; // OK.
main() {
print(''.isBlank); // Prints `true`.
}Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onfeature-wildcard-variablesImplementation of the wildcard variables featureImplementation of the wildcard variables featurelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug