-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixesfeature-enhanced-partsRegarding the 'enhanced-parts' featureRegarding the 'enhanced-parts' featuretype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
Create main.dart:
part 'part.dart';Then trigger the quick-fix to create the part.dart file.
Inside part.dart:
part of 'main.dart';
part 'inner-part.dart';Do the same for the new file, it'll give a new error:
Expected this library to be part of 'package:bug/part.dart', not 'package:bug/inner-part.dart'.
Try including a different part, or changing the name of the library in the part's part-of directive.dart[part_of_different_library](https://dart.dev/diagnostics/part_of_different_library)Because the generated inner-part:
part of 'main.dart';Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixesIssues with analysis server (quick) fixesfeature-enhanced-partsRegarding the 'enhanced-parts' featureRegarding the 'enhanced-parts' featuretype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Type
Projects
Status
Todo