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

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: Split visitTypeReferenceSend 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
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 63%
copy from tests/compiler/dart2js_extra/16407_test.dart
copy to tests/language/dynamic_type_literal_test.dart
index aff1ba337ddab1eb5d219ac635653b48d4f8d1bc..34c5b67f78351929c6854754de1c797f2068f9c2 100644
--- a/tests/compiler/dart2js_extra/16407_test.dart
+++ b/tests/language/dynamic_type_literal_test.dart
@@ -1,16 +1,11 @@
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// 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.
+// Test explicit import of dart:core in the source code..
asgerf 2014/07/01 09:30:29 Stray comment.
Johnni Winther 2014/07/01 10:53:01 Updated.
import "package:expect/expect.dart";
-// Regression test for Issue 16407.
-
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');
-};

Powered by Google App Engine
This is Rietveld 408576698