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

Unified Diff: dart/tests/utils/dummy_compiler_test.dart

Issue 11472022: Reject constructor names that conflict with members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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: dart/tests/utils/dummy_compiler_test.dart
diff --git a/dart/tests/utils/dummy_compiler_test.dart b/dart/tests/utils/dummy_compiler_test.dart
index af4c06a4ce68468b5ff7f9e6af15f1b58ed3de51..cd329ca5fe5e5f7d7b9ec9c54f69361d4a549774 100644
--- a/dart/tests/utils/dummy_compiler_test.dart
+++ b/dart/tests/utils/dummy_compiler_test.dart
@@ -4,6 +4,8 @@
// Smoke test of the dart2js compiler API.
+library dummy_compiler;
+
import '../../sdk/lib/_internal/compiler/compiler.dart';
import 'dart:uri';
@@ -14,7 +16,7 @@ Future<String> provider(Uri uri) {
source = "main() {}";
} else if (uri.scheme == "lib") {
if (uri.path.endsWith("/core.dart")) {
- source = """#library('core');
+ source = """library core;
class Object {}
class Type {}
class bool {}
@@ -36,11 +38,19 @@ Future<String> provider(Uri uri) {
source = '';
} else if (uri.path.endsWith('interceptors.dart')) {
source = """class ObjectInterceptor {}
+ class JSArray {}
+ class JSString {}
+ class JSFunction {}
+ class JSInt {}
+ class JSDouble {}
+ class JSNumber {}
+ class JSNull {}
+ class JSBool {}
var getInterceptor;""";
} else if (uri.path.endsWith('js_helper.dart')) {
source = 'library jshelper; class JSInvocationMirror {}';
} else {
- source = "#library('lib');";
+ source = "library lib;";
}
} else {
throw "unexpected URI $uri";

Powered by Google App Engine
This is Rietveld 408576698