Skip to content

Commit ea84221

Browse files
fishythefishCommit Queue
authored and
Commit Queue
committed
Fix nullability of cast to FunctionType.
Fixes: #52403 Change-Id: I6eeaad51f45b8dabfd61132d2deae0893b01e99b Fixed: 52403 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303420 Reviewed-by: Johnni Winther <[email protected]> Auto-Submit: Mayank Patke <[email protected]> Commit-Queue: Johnni Winther <[email protected]>
1 parent 70fc3c3 commit ea84221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kernel/lib/clone.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ class CloneVisitorNotMembers implements TreeVisitor<TreeNode> {
832832
TreeNode visitInstanceGetterInvocation(InstanceGetterInvocation node) {
833833
return new InstanceGetterInvocation.byReference(
834834
node.kind, clone(node.receiver), node.name, clone(node.arguments),
835-
functionType: visitOptionalType(node.functionType) as FunctionType,
835+
functionType: visitOptionalType(node.functionType) as FunctionType?,
836836
interfaceTargetReference: node.interfaceTargetReference);
837837
}
838838

0 commit comments

Comments
 (0)