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

Unified Diff: pkg/analysis_testing/lib/mock_sdk.dart

Issue 418373002: More tests for creating undefined methods and functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | « pkg/analysis_services/test/correction/fix_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_testing/lib/mock_sdk.dart
diff --git a/pkg/analysis_testing/lib/mock_sdk.dart b/pkg/analysis_testing/lib/mock_sdk.dart
index 99cf23c15e109e8a2e8cc230b2fa0efb911c4b98..224d4384a90399c9ec9333af81c373b0c8b75238 100644
--- a/pkg/analysis_testing/lib/mock_sdk.dart
+++ b/pkg/analysis_testing/lib/mock_sdk.dart
@@ -26,9 +26,15 @@ class MockSdk implements DartSdk {
class Symbol {}
class Type {}
- class String extends Object {}
+ abstract class Comparable<T> {
+ int compareTo(T other);
+ }
+
+ class String implements Comparable<String> {
+ }
+
class bool extends Object {}
- abstract class num extends Object {
+ abstract class num implements Comparable<num> {
num operator +(num other);
num operator -(num other);
num operator *(num other);
« no previous file with comments | « pkg/analysis_services/test/correction/fix_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698