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

Unified Diff: tests/language/constructor_name_clash_test.dart

Issue 891673003: dart2js: Refactoring, documentation, and a few bugfixes in Namer class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 10 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/constructor_name_clash_lib.dart ('k') | tests/language/is_operator_clash_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/constructor_name_clash_test.dart
diff --git a/tests/language/regress_21998_1_test.dart b/tests/language/constructor_name_clash_test.dart
similarity index 59%
copy from tests/language/regress_21998_1_test.dart
copy to tests/language/constructor_name_clash_test.dart
index 3237f3396629f6fd11270e1adc290bec78713958..80273ccba7c48650d085b46c243e52b6fb520446 100644
--- a/tests/language/regress_21998_1_test.dart
+++ b/tests/language/constructor_name_clash_test.dart
@@ -2,17 +2,17 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-import 'dart:math' as Math;
import 'package:expect/expect.dart';
+import 'constructor_name_clash_lib.dart' as lib;
-main() {
- Expect.equals(4, new C().m());
+class A extends lib.A {
+ A() {
+ lib.global += 100;
+ try {} catch(e) {} // no inline
+ }
}
-class C {
- max(a) => a;
-
- m() {
- return max(Math.max(2, 4));
- }
-}
+main() {
+ new A();
+ Expect.equals(110, lib.global);
+}
« no previous file with comments | « tests/language/constructor_name_clash_lib.dart ('k') | tests/language/is_operator_clash_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698