Skip to content

Commit

Permalink
dart-lang#1401. [Patterns] Missing log added
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrekhov committed Oct 31, 2022
1 parent c4bf30a commit 27f5593
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion LanguageFeatures/Patterns/patterns_lib.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ class Rectangle extends Shape {
Rectangle(this.x, this.y);
Rectangle.withLog(this.x, this.y) : super._withLog(logger);

double get area => x * y;
double get area {
_logger("Rectangle.area");
return x * y;
}
}

class Point extends Shape {
Expand Down

0 comments on commit 27f5593

Please sign in to comment.