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

Unified Diff: tests/language/dynamic_type_literal_test.dart

Issue 359413006: Fix handling of type literals. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 6 years, 6 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 | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/dynamic_type_literal_test.dart
diff --git a/tests/compiler/dart2js_extra/16407_test.dart b/tests/language/dynamic_type_literal_test.dart
similarity index 64%
copy from tests/compiler/dart2js_extra/16407_test.dart
copy to tests/language/dynamic_type_literal_test.dart
index aff1ba337ddab1eb5d219ac635653b48d4f8d1bc..335e9ae70a2bd61eeaed2c7475eb25c4ae4de407 100644
--- a/tests/compiler/dart2js_extra/16407_test.dart
+++ b/tests/language/dynamic_type_literal_test.dart
@@ -2,15 +2,11 @@
// 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 "package:expect/expect.dart";
+// Test generation of 'dynamic' type literals.
-// Regression test for Issue 16407.
+import "package:expect/expect.dart";
void main() {
- foo(null, true);
- foo('x', false);
+ Expect.isTrue(dynamic is Type);
+ Expect.isFalse(dynamic == Type);
}
-
-var foo = (x, result) {
- Expect.equals(result, x is Null, '$x is Null');
-};
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698