Skip to content

Commit

Permalink
Remove unnecessary region
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Jan 3, 2024
1 parent d2689f2 commit 8ae0e42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions examples/misc/lib/language_tour/classes/point_this.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// ignore_for_file: invalid_reference_to_this, unnecessary_this
// #docregion this-late
double initialX = 1.5;

class Point {
Expand All @@ -15,4 +14,3 @@ class Point {
// OK, `this.fieldName` is a parameter declaration, not an expression:
Point(this.x, this.y);
}
// #enddocregion this-late
2 changes: 1 addition & 1 deletion src/language/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

<?code-excerpt "misc/lib/language_tour/classes/point_this.dart (this-late)"?>
<?code-excerpt "misc/lib/language_tour/classes/point_this.dart"?>
```dart
double initialX = 1.5;
Expand Down

0 comments on commit 8ae0e42

Please sign in to comment.