Chitresh Yadav (csy) <csy24...@gmail.com> would like Samuel Rawlins to review this change.
[analysis_server] Keep declaring final and var
The function-type syntax fix dropped `final` and `var`, so a
primary-constructor declaring parameter became an ordinary parameter
and the field disappeared.
Closes https://github.com/dart-lang/sdk/issues/64597
R=bwilk...@google.com, sraw...@google.com
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Future<void> test_functionTypedParameter_declaring_final() async {Please add a test case of the form
```dart
int _zero(String _) => 0;
class C({final int f(String s) = _zero}) {}
```
I believe the correct result would be
```dart
int _zero(String _) => 0;
class C({final int Function(String s) f = _zero}) {}
```
But I think the test will fail. (Happy to be proven wrong.)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |