Buggy Assertion that tends to check for submodule contained in a module
- Dominant language
- Dart
- Stars
- 489
- Forks
- 88
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 10
Description
### Describe the bug
The assertion is:
if (receiver.parentModule != module &&
!module.subModules.contains(receiver.parentModule)) {
// This should never happen!
assert(false, 'Receiver is not in this module or a submodule.');
continue;
}
This fails for modules that are optimized out and receiver that is also optimized out.

### To Reproduce
Use a bunch of subset connections in the hierarchy
### Expected behavior
_No response_
### Actual behavior
_No response_
### Additional: Dart SDK info
Dart SDK version: 3.3.3 (stable) (None) on "linux_x64"
### Additional: pubspec.yaml
_No response_
### Additional: Context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.