dart-lang / dart-lang/language
Omitting an argument name should not turn into a implicit dynamic with an argument named after a type
- Dominant language
- TeX
- Stars
- 2.9k
- Forks
- 239
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 14
Description
Hi there, not sure if this belongs here or dart-lang/sdk.
It seems that abstract class method arguments work if they are `T`, `T argumentName`, but not `T`
```dart
abstract class Foo {
void valid(String);
void valid2(List foo);
void invalid(List); // Expected to find ')'
}
```
Contributor guide
Research direction
Reproduce the abstract-method examples from the issue and compare the behavior of String, List foo, and List in the Dart language specification. Identify the specification or grammar entry governing unnamed arguments, then confirm the intended result and add the corresponding coverage if the repository has a relevant test location.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100