-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
In the code below () => 10
would have a parent context capturing v
even though it does not need it. We could avoid linking closure context to parent context unless it really needs it.
foo(v) {
return () {
print(v);
return () => 10;
};
}
Related to flutter/flutter#79605
Metadata
Metadata
Assignees
Labels
area-vmUse area-vm for VM related issues, including code coverage, and the AOT and JIT backends.Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.type-enhancementA request for a change that isn't a bugA request for a change that isn't a bug