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

Side by Side Diff: samples/meta/meta_sample.dart

Issue 10960055: Creating a CL to demonstrate the use of the package:meta/meta.dart package. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | samples/meta/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 #import("package:meta/meta.dart");
3
4
5 // The Editor will display calls to imDeprecated() in strikeout.
6 @deprecated
7 void imDeprecated() {
8 print("I'm deprecated!");
9 }
10
11
12 abstract class Animal {
13 int legCount();
14 }
15
16
17 class Dog extends Animal {
18 @override
19 int legCount() => 4;
20
21 // The Editor will warn about this, as no parent method is overridden.
22 @override
23 void bark() => print("bark!");
24 }
25
26
27 void main() {
28 imDeprecated();
29
30 Dog dog = new Dog();
31
32 dog.bark();
33 }
OLDNEW
« no previous file with comments | « no previous file | samples/meta/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698