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

Unified Diff: tests/language/bad_override_test.dart

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month 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/html/url_test.dart ('k') | tests/language/do_while2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/bad_override_test.dart
diff --git a/tests/language/bad_override_test.dart b/tests/language/bad_override_test.dart
index 2bb690022d06f63a580bf1078f7c3f1ab939fa39..646df5c44538c93828bebacde1754a4941c82a6d 100644
--- a/tests/language/bad_override_test.dart
+++ b/tests/language/bad_override_test.dart
@@ -3,12 +3,14 @@
// BSD-style license that can be found in the LICENSE file.
class Fisk {
- get fisk => null;
- static /// 01: compile-time error
+ get fisk => null;
+ static /// 01: static type warning
set fisk(x) {}
- static /// 02: compile-time error
- get hest => null;
- set hest(x) {}
+
+ static /// 02: static type warning
+ get hest => null;
+ set hest(x) {}
+
foo() {}
var field;
method() {}
@@ -16,10 +18,10 @@ class Fisk {
}
class Hest extends Fisk {
- static foo() {} /// 03: compile-time error
- field() {} /// 04: compile-time error
- var method; /// 05: compile-time error
- nullary(x) {} /// 06: compile-time error
+ static foo() {} /// 03: compile-time error
+ field() {} /// 04: compile-time error
+ var method; /// 05: compile-time error
+ nullary(x) {} /// 06: compile-time error
}
main() {
« no previous file with comments | « tests/html/url_test.dart ('k') | tests/language/do_while2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698