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

Unified Diff: tests/compiler/dart2js_extra/22487_test.dart

Issue 932363002: Fix for dart2js codegen issue 22487 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « pkg/compiler/lib/src/ssa/types_propagation.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/22487_test.dart
diff --git a/tests/language/regress_21998_1_test.dart b/tests/compiler/dart2js_extra/22487_test.dart
similarity index 67%
copy from tests/language/regress_21998_1_test.dart
copy to tests/compiler/dart2js_extra/22487_test.dart
index 3237f3396629f6fd11270e1adc290bec78713958..4bf5426b20e4dc4508044fb5aa0884afe5082e4a 100644
--- a/tests/language/regress_21998_1_test.dart
+++ b/tests/compiler/dart2js_extra/22487_test.dart
@@ -2,17 +2,12 @@
// 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;
+// Regression test for http://dartbug.com/22487
+
import 'package:expect/expect.dart';
+divIsInt(a, b) => (a / b) is int;
+
main() {
- Expect.equals(4, new C().m());
+ Expect.isFalse((divIsInt)(10, 3));
}
-
-class C {
- max(a) => a;
-
- m() {
- return max(Math.max(2, 4));
- }
-}
« no previous file with comments | « pkg/compiler/lib/src/ssa/types_propagation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698