angular-cn/packages/language-service/test
Ayaz Hafiz 8be0972836 fix(language-service): properly evaluate types in comparable expressions (#36529)
This commit fixes how the language service evaluates the compatibility
of types to work with arbitrary union types. As a result, compatibility
checks are now more strict and can catch similarities or differences
more clearly.

```
number|string == string|null  // OK
number|string == number       // OK
number|string == null         // not comparable
number == string              // not comparable
```

Using Ivy as a backend should provide these diagnoses for free, but we
can backfill them for now.

Closes https://github.com/angular/vscode-ng-language-service/issues/723

PR Close #36529
2020-04-16 16:07:47 -04:00
..
project fix(language-service): properly evaluate types in comparable expressions (#36529) 2020-04-16 16:07:47 -04:00
BUILD.bazel refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00
completions_spec.ts test(language-service): Inline test cases in parsing-cases.ts (#36495) 2020-04-08 12:11:04 -07:00
definitions_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
diagnostic_messages_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
diagnostics_spec.ts fix(language-service): properly evaluate types in comparable expressions (#36529) 2020-04-16 16:07:47 -04:00
expression_diagnostics_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
global_symbols_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
hover_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
html_info_spec.ts build: update jasmine to 3.5 (#34625) 2020-04-08 12:10:34 -07:00
language_service_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
mocks.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00
reflector_host_spec.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
test_utils.ts refactor(language-service): reformat using clang-format (#36426) 2020-04-06 09:29:42 -07:00
ts_plugin_spec.ts test(language-service): remove ng-if-cases.ts (#36470) 2020-04-07 11:34:38 -07:00
typescript_host_spec.ts test(language-service): Inline test cases in parsing-cases.ts (#36495) 2020-04-08 12:11:04 -07:00
typescript_symbols_spec.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00
utils_spec.ts refactor(language-service): clean up and exports and consolidate types (#36533) 2020-04-14 10:17:43 -07:00