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

Unified Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 11093078: - Add support for binary operators (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync to head Created 8 years, 2 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
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 7d0b8326781a8095890ce46ed37ae0084a480120..7e4f7201af135c0ea5ce3d73fc8841c6ccf3dd98 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -55,12 +55,12 @@ const String DEFAULT_INTERCEPTORSLIB = r'''
const String DEFAULT_CORELIB = r'''
print(var obj) {}
- abstract class int extends num {}
- abstract class double extends num {}
+ abstract class num { operator +(x); operator *(x); operator -(x); }
karlklose 2012/10/23 10:58:15 I am not sure we want to add these operators here.
polux 2012/10/25 12:02:01 Done.
+ abstract class int extends num { }
+ abstract class double extends num { }
class bool {}
class String {}
class Object {}
- abstract class num {}
class Function {}
interface List default ListImplementation { List([length]);}
class ListImplementation { factory List([length]) => null; }

Powered by Google App Engine
This is Rietveld 408576698