Skip to content

Commit dc366a5

Browse files
[nnbd_migration] Assert an edge origin exists in _checkAssignment
Change-Id: If2b9d9c4cfdf35b67df478cc20ed16fe6b868b44 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/137823 Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Mike Fairhurst <[email protected]>
1 parent 3ae91fc commit dc366a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/nnbd_migration/lib/src/edge_builder.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,6 +2634,7 @@ mixin _AssignmentChecker {
26342634
@required bool hard,
26352635
bool checkable = true,
26362636
bool sourceIsFunctionLiteral = false}) {
2637+
assert(origin != null);
26372638
var sourceType = source.type;
26382639
var destinationType = destination.type;
26392640
if (!_typeSystem.isSubtypeOf(sourceType, destinationType)) {

0 commit comments

Comments
 (0)