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

Unified Diff: tests/language/setter_no_getter_test.dart

Issue 10905062: Fix issue 4361 by checking in the resolver if the getter/setter exists. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « tests/language/setter_no_getter_call_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/setter_no_getter_test.dart
===================================================================
--- tests/language/setter_no_getter_test.dart (revision 11766)
+++ tests/language/setter_no_getter_test.dart (working copy)
@@ -2,23 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-var topLevelClosure;
-
/* /// 01: compile-time error
-get topLevel => topLevelClosure;
+get topLevel => 42;
*/ /// 01: continued
set topLevel(var value) { }
-initialize() {
- print("initializing");
- topLevelClosure = tlc(x) => x * 2;
-}
-
main() {
- initialize();
- var x = topLevelClosure(2);
- Expect.equals(4, x);
-
- x = topLevel(3);
- Expect.equals(6, x);
-}
+ Expect.equals(42, topLevel++); /// 01: continued
+}
« no previous file with comments | « tests/language/setter_no_getter_call_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698