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

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

Issue 18670003: Remove support for conflicting constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 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 | « tests/compiler/dart2js/patch_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/simple_inferrer_test.dart
diff --git a/tests/compiler/dart2js/simple_inferrer_test.dart b/tests/compiler/dart2js/simple_inferrer_test.dart
index b5b9d9b23ad8ec41ecfe1772fc08597b45dd3d18..186504dd7f593885e65102ae07f439d34371e88f 100644
--- a/tests/compiler/dart2js/simple_inferrer_test.dart
+++ b/tests/compiler/dart2js/simple_inferrer_test.dart
@@ -580,11 +580,11 @@ void main() {
checkReturnInClass('B', 'returnInt8', typesInferrer.intType);
checkReturnInClass('B', 'returnInt9', typesInferrer.intType);
- checkFactoryConstructor(String className) {
+ checkFactoryConstructor(String className, String factoryName) {
var cls = findElement(compiler, className);
- var element = cls.localLookup(buildSourceString(className));
+ var element = cls.localLookup(buildSourceString(factoryName));
Expect.equals(new TypeMask.nonNullExact(cls.rawType),
typesInferrer.getReturnTypeOfElement(element));
}
- checkFactoryConstructor('A');
+ checkFactoryConstructor('A', '');
}
« no previous file with comments | « tests/compiler/dart2js/patch_test.dart ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698