diff --git a/examples/misc/lib/language_tour/classes/point_this.dart b/examples/misc/lib/language_tour/classes/point_this.dart index e384e6d5a5..a2135e9737 100644 --- a/examples/misc/lib/language_tour/classes/point_this.dart +++ b/examples/misc/lib/language_tour/classes/point_this.dart @@ -1,5 +1,4 @@ // ignore_for_file: invalid_reference_to_this, unnecessary_this -// #docregion this-late double initialX = 1.5; class Point { @@ -15,4 +14,3 @@ class Point { // OK, `this.fieldName` is a parameter declaration, not an expression: Point(this.x, this.y); } -// #enddocregion this-late diff --git a/src/language/classes.md b/src/language/classes.md index e6a2faea28..3f7cca1e0d 100644 --- a/src/language/classes.md +++ b/src/language/classes.md @@ -198,7 +198,7 @@ before the constructor and its initializer list execute. As a result, the initializing expression (after the `=`) of a non-`late` instance variable can't access `this`. - + ```dart double initialX = 1.5;