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

Side by Side Diff: tests/language/tearoff_basic_lib.dart

Issue 1234883005: Implement tear-off closure operator # (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library shared; 5 library tearoff_basic_lib;
6 6
7 class CShared { 7 cfunc() => "cfunc";
8 toString() => "shared";
9 }
10 8
11 class C1 { 9 set cset(a) { cvar = a; }
12 toString() => "C1";
13 }
14 10
15 class C2 { 11 get cget => "cget";
16 toString() => "C2"; 12
17 } 13 var cvar = 1+2+3;
14
15 final cfinvar = "set in stone";
16
17 class ZZ { }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698