Skip to content

Commit 6c8bb63

Browse files
Accepted baselines.
1 parent a0ef319 commit 6c8bb63

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx(11,15): error TS2322: Type 'string' is not assignable to type '"A" | "B" | "C"'.
2-
Type 'string' is not assignable to type '"C"'.
31
tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx(13,15): error TS2322: Type '"f"' is not assignable to type '"A" | "B" | "C"'.
42
Type '"f"' is not assignable to type '"C"'.
5-
tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx(14,15): error TS2322: Type 'string' is not assignable to type '"A" | "B" | "C"'.
6-
Type 'string' is not assignable to type '"C"'.
3+
tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx(14,15): error TS2322: Type '"f"' is not assignable to type '"A" | "B" | "C"'.
4+
Type '"f"' is not assignable to type '"C"'.
75

86

9-
==== tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx (3 errors) ====
7+
==== tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStringLiteralsInJsxAttributes01.tsx (2 errors) ====
108

119
namespace JSX {
1210
interface IntrinsicElements {
@@ -18,15 +16,12 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/contextuallyTypedStr
1816

1917
<FooComponent foo={"A"} />;
2018
<FooComponent foo="A" />;
21-
~~~~~~~
22-
!!! error TS2322: Type 'string' is not assignable to type '"A" | "B" | "C"'.
23-
!!! error TS2322: Type 'string' is not assignable to type '"C"'.
2419

2520
<FooComponent foo={"f"} />;
2621
~~~~~~~~~
2722
!!! error TS2322: Type '"f"' is not assignable to type '"A" | "B" | "C"'.
2823
!!! error TS2322: Type '"f"' is not assignable to type '"C"'.
2924
<FooComponent foo="f" />;
3025
~~~~~~~
31-
!!! error TS2322: Type 'string' is not assignable to type '"A" | "B" | "C"'.
32-
!!! error TS2322: Type 'string' is not assignable to type '"C"'.
26+
!!! error TS2322: Type '"f"' is not assignable to type '"A" | "B" | "C"'.
27+
!!! error TS2322: Type '"f"' is not assignable to type '"C"'.

0 commit comments

Comments
 (0)