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

Unified Diff: dart/tests/language/getters_setters2_test.dart

Issue 10829416: Update language tests to new getter syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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 | « dart/tests/language/getter_setter_in_lib.dart ('k') | dart/tests/language/getters_setters_type2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/language/getters_setters2_test.dart
diff --git a/dart/tests/language/getters_setters2_test.dart b/dart/tests/language/getters_setters2_test.dart
index f854a27d62d8291a24e719cc507b9f845aa53e81..38075971c1c2b0753bf9b44a1c6eee1cf25aed4f 100644
--- a/dart/tests/language/getters_setters2_test.dart
+++ b/dart/tests/language/getters_setters2_test.dart
@@ -16,7 +16,7 @@ class C {}
class T1 {
A getterField;
- A get field() { return getterField; }
+ A get field { return getterField; }
// OK, B is assignable to A
void set field(B arg) { getterField = arg; }
}
@@ -24,7 +24,7 @@ class T1 {
class T2 {
A getterField;
C setterField;
- A get field() { return getterField; }
+ A get field { return getterField; }
// Type C is not assignable to A
void set field(C arg) { setterField = arg; } /// 01: static type warning
@@ -32,7 +32,7 @@ class T2 {
class T3 {
B getterField;
- B get field() { return getterField; }
+ B get field { return getterField; }
// OK, A is assignable to B
void set field(A arg) { getterField = arg; }
}
« no previous file with comments | « dart/tests/language/getter_setter_in_lib.dart ('k') | dart/tests/language/getters_setters_type2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698