Skip to content

Commit

Permalink
Fix super reference (#5830)
Browse files Browse the repository at this point in the history
Fixes #4731
  • Loading branch information
atsansone authored May 16, 2024
1 parent 09c6d88 commit 974dcb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/misc/lib/language_tour/classes/employee.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Employee extends Person {
// #docregion super
// Person does not have a default constructor;
// you must call super.fromJson().
Employee.fromJson(super.data) : super.fromJson() {
Employee.fromJson(Map data) : super.fromJson(data) {
print('in Employee');
}
// #docregion method-then-constructor
Expand Down
2 changes: 1 addition & 1 deletion src/content/language/constructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class Person {
class Employee extends Person {
// Person does not have a default constructor;
// you must call super.fromJson().
Employee.fromJson(super.data) : super.fromJson() {
Employee.fromJson(Map data) : super.fromJson(data) {
print('in Employee');
}
}
Expand Down

0 comments on commit 974dcb3

Please sign in to comment.