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

Unified Diff: tests/language/getter_no_setter2_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 | « lib/compiler/implementation/warnings.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/getter_no_setter2_test.dart
===================================================================
--- tests/language/getter_no_setter2_test.dart (revision 11766)
+++ tests/language/getter_no_setter2_test.dart (working copy)
@@ -10,7 +10,7 @@
{
bool flag_exception = false;
try {
- nextVar = 1; // Equivalent to this.nextVar = 1.
+ nextVar++;
} catch (excpt) {
flag_exception = true;
}
@@ -19,7 +19,7 @@
{
bool flag_exception = false;
try {
- this.nextVar = 1; /// 00: static type warning
+ this.nextVar++; /// 00: static type warning
} catch (excpt) {
flag_exception = true;
}
@@ -27,8 +27,8 @@
}
}
static test() {
- nextVar = 0; /// 01: compile-time error
- this.nextVar = 0; /// 02: compile-time error
+ nextVar++; /// 01: compile-time error
+ this.nextVar++; /// 02: compile-time error
}
}
« no previous file with comments | « lib/compiler/implementation/warnings.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698