dart-lang / dart-lang/language

Super-parameters de-sugaring example contains super-parameters

Open Beginner friendly
#2,215 0 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

https://github.com/dart-lang/language/blob/master/working/1855%20-%20super%20parameters/proposal.md#examples

```dart
class C extends B {
C(super.foo, super.bar, [super.baz = 4]);
// Same as:
// C(super.foo, super.bar, [super.baz = 4]) : super(foo, bar, baz);
}
```

Unless I'm misunderstanding what the example is indicating... I think the comment should not contain super-parameters.

Contributor guide

Open the contributing guide

Research direction

Open working/1855 - super parameters/proposal.md at the Examples section and compare the shorthand constructor with its desugared form. Update the commented equivalent so it no longer uses super-parameters, then verify that the example accurately represents the intended transformation.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.