Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Unified Diff: CHANGELOG.md

Issue 2352433002: support `@virtual` fields, fix #27384 (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/element/element.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9054ac85ef6071867fdfe10b0a83323a130d7f45..bf984aba0ce71eb7d92ac7e0d198c70d97c489f1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -73,6 +73,23 @@
}
```
+* New feature - use `@virtual` to allow field overrides in strong mode
+ (SDK issue [27384](https://github.com/dart-lang/sdk/issues/27384)).
+
+ ```dart
+ import 'package:meta/meta.dart' show virtual;
+ class Base {
+ @virtual int x;
+ }
+ class Derived extends Base {
+ int x;
+
+ // Expose the hidden storage slot:
+ int get superX => super.x;
+ set superX(int v) { super.x = v; }
+ }
+ ```
+
* Breaking change - infer list and map literals from the context type as well as
their values, consistent with generic methods and instance creation
(SDK issue [27151](https://github.com/dart-lang/sdk/issues/27151)).
« no previous file with comments | « no previous file | pkg/analyzer/lib/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698