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

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

Issue 47513007: Fix the more specific relation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase + fix test/status Created 7 years, 2 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/subtype_test.dart ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index 19539aef88aae31e5344bfa2e6c2807c3bd31bb4..d93b2d60f7bb5752557e173d99239547a7be7c41 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -1554,8 +1554,8 @@ testTypePromotionHints() {
infos: []);
check('''
- D d = new E();
- if (d is E<int>) {
+ D<int> d = new E();
+ if (d is E) {
var x = d.e;
}''',
warnings: [MessageKind.MEMBER_NOT_FOUND.warning],
@@ -1563,8 +1563,8 @@ testTypePromotionHints() {
infos: []);
check('''
- D d = new E();
- if (d is E<int>) {
+ D<int> d = new E();
+ if (d is E) {
var x = d.f; // Type promotion wouldn't help.
}''',
warnings: [MessageKind.MEMBER_NOT_FOUND.warning],
« no previous file with comments | « tests/compiler/dart2js/subtype_test.dart ('k') | tests/language/language_analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698