Update language_2/const_map4_test for type inference

Change-Id: Id81d974b0889e7c469ed40c85955f9b18265c634
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107927
Auto-Submit: Stephen Adams <sra@google.com>
Reviewed-by: Leaf Petersen <leafp@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
This commit is contained in:
Stephen Adams 2019-07-02 19:23:18 +00:00 committed by commit-bot@chromium.org
parent 99ed4871b3
commit 1f02c10b9a
4 changed files with 5 additions and 6 deletions

View file

@ -13,11 +13,15 @@ main() {
b = const {1: 'a', 2: 'b', 3: 'c'};
Expect.equals(true, a == b);
a = const <int, String>{1: 'a', 2: 'b', 3: 'c'};
b = const {1: 'a', 2: 'b', 3: 'c'};
Expect.equals(true, a == b);
a = const <num, String>{1: 'a', 2: 'b', 3: 'c'};
b = const {1: 'a', 2: 'b', 3: 'c'};
Expect.equals(false, a == b);
a = const <dynamic, dynamic>{1: 'a', 2: 'b', 3: 'c'};
b = const {1: 'a', 2: 'b', 3: 'c'};
Expect.equals(true, a == b);
Expect.equals(false, a == b);
}

View file

@ -39,7 +39,6 @@ const_evaluation_test/01: RuntimeError
const_list_test: RuntimeError
const_map2_test/00: MissingCompileTimeError
const_map3_test/00: MissingCompileTimeError
const_map4_test: RuntimeError
const_switch_test/02: RuntimeError, OK # constant identity based on JS constants
const_switch_test/04: RuntimeError, OK # constant identity based on JS constants
constructor12_test: RuntimeError

View file

@ -306,7 +306,6 @@ compile_time_constant_e_test: RuntimeError # Issue 30876; Expect.identical(expec
config_import_corelib_test: CompileTimeError
const_evaluation_test/01: RuntimeError # dart:mirrors not supported in DDC
const_list_test: RuntimeError # Expect.equals(expected: <false>, actual: <true>) fails.
const_map4_test: RuntimeError # Expect.equals(expected: <true>, actual: <false>) fails.
const_switch_test/02: RuntimeError # Issue 29920; Expect.equals(expected: <0>, actual: <0.0>) fails.
const_switch_test/04: RuntimeError # Ints and doubles are unified.; Expect.equals(expected: <1>, actual: <1.0>) fails.
constructor12_test: RuntimeError # Issue 29920; ReferenceError: JSArrayOfT is not defined

View file

@ -33,7 +33,6 @@ config_import_corelib_test: CompileTimeError
config_import_test: RuntimeError
const_list_test: RuntimeError
const_locals_test: RuntimeError
const_map4_test: RuntimeError
const_nested_test: RuntimeError
const_string_test: RuntimeError
constructor12_test: RuntimeError
@ -590,7 +589,6 @@ config_import_corelib_test: CompileTimeError # Issue 31533
config_import_test: RuntimeError # KernelVM bug: Configurable imports.
const_evaluation_test: SkipByDesign
const_list_test: RuntimeError
const_map4_test: RuntimeError
constructor12_test: RuntimeError
constructor3_test: Fail, OK, Pass
ct_const2_test: Skip # Incompatible flag: --compile_all
@ -915,7 +913,6 @@ config_import_test: RuntimeError # KernelVM bug: Configurable imports.
const_dynamic_type_literal_test/02: RuntimeError # KernelVM bug: Constant map duplicated key.
const_list_test: RuntimeError
const_locals_test: RuntimeError
const_map4_test: RuntimeError
const_nested_test: RuntimeError # KernelVM bug: Constant evaluation.
const_string_test: RuntimeError
constructor12_test: RuntimeError