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

Unified Diff: tests/language/src/AssignInstanceMethodNegativeTest.dart

Issue 9158014: Disallow assignment to a top level method in dartc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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/language-leg.status ('k') | tests/language/src/AssignTopMethodNegativeTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/AssignInstanceMethodNegativeTest.dart
diff --git a/tests/language/src/AssignInstanceMethodNegativeTest.dart b/tests/language/src/AssignInstanceMethodNegativeTest.dart
index f426fca77136cf96506dcf532b0d062052fee627..46505ae6925adc05c032cc31992121f68824cfd9 100644
--- a/tests/language/src/AssignInstanceMethodNegativeTest.dart
+++ b/tests/language/src/AssignInstanceMethodNegativeTest.dart
@@ -7,15 +7,8 @@ class A {
imethod() { return 0; }
}
-class AssignInstanceMethodNegativeTest {
-
- static testMain() {
- var a = new A();
- // Illegal, can't change a member method
- a.imethod = () { return 1; };
- }
-}
-
main() {
- AssignInstanceMethodNegativeTest.testMain();
+ var a = new A();
+ // Illegal, can't change a member method
+ a.imethod = () { return 1; };
}
« no previous file with comments | « tests/language/language-leg.status ('k') | tests/language/src/AssignTopMethodNegativeTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698