mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
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:
parent
438c595950
commit
4310d157a1
2 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue