mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:49:47 +00:00
[gardening] Fix language_2/generic_instanceof2_test
Change-Id: Ida4afe8488a6c58ebfedde901ae293465a320714 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108741 Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Stephen Adams <sra@google.com>
This commit is contained in:
parent
3dcaea5a25
commit
d1bd3a2f43
|
@ -38,11 +38,13 @@ testAll() {
|
|||
Expect.isTrue(foo_int_num.FooString() is Foo<int, String>);
|
||||
|
||||
var foo_raw = new Foo();
|
||||
Expect.isTrue(foo_raw is Foo<int, num>);
|
||||
Expect.isTrue(foo_raw is Foo<int, String>);
|
||||
Expect.isTrue(foo_raw is! Foo<int, num>);
|
||||
Expect.isTrue(foo_raw is! Foo<int, String>);
|
||||
Expect.isTrue(foo_raw is Foo<dynamic, dynamic>);
|
||||
// foo_raw.FooString() returns a Foo<dynamic, String>
|
||||
Expect.isTrue(foo_raw.FooString() is! Foo<int, num>);
|
||||
Expect.isTrue(foo_raw.FooString() is Foo<int, String>);
|
||||
Expect.isTrue(foo_raw.FooString() is! Foo<int, String>);
|
||||
Expect.isTrue(foo_raw.FooString() is Foo<dynamic, String>);
|
||||
|
||||
var moo_int_num = new Moo<int, num>();
|
||||
Expect.isTrue(moo_int_num is Moo<int, num>);
|
||||
|
@ -52,11 +54,13 @@ testAll() {
|
|||
Expect.isTrue(moo_int_num.MooString() is Moo<int, String>);
|
||||
|
||||
var moo_raw = new Moo();
|
||||
Expect.isTrue(moo_raw is Moo<int, num>);
|
||||
Expect.isTrue(moo_raw is Moo<int, String>);
|
||||
Expect.isTrue(moo_raw is! Moo<int, num>);
|
||||
Expect.isTrue(moo_raw is! Moo<int, String>);
|
||||
Expect.isTrue(moo_raw is Moo<dynamic, dynamic>);
|
||||
// moo_raw.MooString() returns a Moo<dynamic, String>
|
||||
Expect.isTrue(moo_raw.MooString() is! Moo<int, num>);
|
||||
Expect.isTrue(moo_raw.MooString() is Moo<int, String>);
|
||||
Expect.isTrue(moo_raw.MooString() is! Moo<int, String>);
|
||||
Expect.isTrue(moo_raw.MooString() is Moo<dynamic, String>);
|
||||
}
|
||||
|
||||
main() {
|
||||
|
|
|
@ -74,7 +74,6 @@ function_propagation_test: RuntimeError
|
|||
function_subtype_inline2_test: RuntimeError
|
||||
generic_function_bounds_test: RuntimeError
|
||||
generic_function_dcall_test/01: RuntimeError
|
||||
generic_instanceof2_test: RuntimeError
|
||||
generic_is_check_test: RuntimeError
|
||||
generic_methods_bounds_test/02: MissingRuntimeError
|
||||
generic_no_such_method_dispatcher_simple_test: CompileTimeError
|
||||
|
|
|
@ -58,7 +58,6 @@ flatten_test/12: MissingRuntimeError
|
|||
function_propagation_test: RuntimeError
|
||||
function_subtype_inline2_test: RuntimeError
|
||||
generic_function_bounds_test: RuntimeError
|
||||
generic_instanceof2_test: RuntimeError
|
||||
generic_is_check_test: RuntimeError
|
||||
generic_no_such_method_dispatcher_simple_test: CompileTimeError
|
||||
generic_no_such_method_dispatcher_test: CompileTimeError
|
||||
|
@ -618,7 +617,6 @@ flatten_test/12: MissingRuntimeError
|
|||
for_in_side_effects_test/01: MissingCompileTimeError
|
||||
function_propagation_test: RuntimeError
|
||||
function_subtype_inline2_test: RuntimeError
|
||||
generic_instanceof2_test: RuntimeError
|
||||
generic_is_check_test: RuntimeError
|
||||
generic_methods_recursive_bound_test/03: Pass
|
||||
generic_methods_recursive_bound_test/03: MissingRuntimeError
|
||||
|
@ -939,7 +937,6 @@ flatten_test/12: MissingRuntimeError
|
|||
for_in_side_effects_test/01: MissingCompileTimeError
|
||||
function_propagation_test: RuntimeError
|
||||
function_subtype_inline2_test: RuntimeError
|
||||
generic_instanceof2_test: RuntimeError
|
||||
generic_is_check_test: RuntimeError
|
||||
generic_no_such_method_dispatcher_simple_test: CompileTimeError # Issue 31533
|
||||
generic_no_such_method_dispatcher_test: CompileTimeError # Issue 31533
|
||||
|
|
Loading…
Reference in a new issue