Fix language_2/type_promotion_more_specific_test/04

Change-Id: Idb6dc5341e8b45f5dff22f6e6545ca154dcb05a3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/116180
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Bob Nystrom <rnystrom@google.com>
Auto-Submit: Mayank Patke <fishythefish@google.com>
This commit is contained in:
Mayank Patke 2019-09-09 18:59:26 +00:00 committed by commit-bot@chromium.org
parent 438c595950
commit 4310d157a1
2 changed files with 2 additions and 3 deletions

View file

@ -58,7 +58,6 @@ compile_time_constant_static5_test/11: CompileTimeError # Issue 30546
compile_time_constant_static5_test/16: CompileTimeError # Issue 30546
compile_time_constant_static5_test/21: CompileTimeError # Issue 30546
compile_time_constant_static5_test/23: CompileTimeError # Issue 30546
type_promotion_more_specific_test/04: CompileTimeError # Issue 30906.
[ $compiler != compare_analyzer_cfe && $compiler != spec_parser ]
mixin_constructor_forwarding/const_constructor_test/none: CompileTimeError # Issue 32223

View file

@ -54,8 +54,8 @@ void testInterface() {
x = b.b; //# 03: ok
}
if (x is A) {
// No promotion: x has type dynamic.
y = x.b; //# 04: ok
// Promotion A << dynamic.
y = x.b; //# 04: compile-time error
}
}