From 85155a7239224bf9a874108491a8ee2c0d3c824f Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Thu, 31 May 2018 09:40:45 -0700
Subject: [PATCH 1/3] JSX errors use JSX terminology
Well, as well as I understand it. Regardless, the error message no
longer mentions a complex synthetic type that *represents* the
component. It just mentions the name of the component.
---
src/compiler/checker.ts | 14 ++---
src/compiler/diagnosticMessages.json | 4 ++
.../checkJsxChildrenProperty14.errors.txt | 10 ++--
.../checkJsxChildrenProperty2.errors.txt | 54 +++++++++----------
.../checkJsxChildrenProperty4.errors.txt | 10 ++--
.../checkJsxChildrenProperty5.errors.txt | 26 ++++-----
.../checkJsxChildrenProperty7.errors.txt | 34 ++++++------
...StringLiteralsInJsxAttributes02.errors.txt | 12 ++---
...sxFactoryDeclarationsLocalTypes.errors.txt | 22 ++++----
...xChildrenGenericContextualTypes.errors.txt | 38 ++++++-------
.../reference/tsxAttributeErrors.errors.txt | 8 +--
.../tsxAttributeResolution1.errors.txt | 6 +--
.../tsxAttributeResolution12.errors.txt | 20 +++----
.../tsxAttributeResolution3.errors.txt | 14 ++---
.../tsxAttributeResolution5.errors.txt | 6 +--
.../tsxAttributeResolution6.errors.txt | 6 +--
.../tsxElementResolution3.errors.txt | 6 +--
.../tsxElementResolution4.errors.txt | 6 +--
.../tsxElementResolution9.errors.txt | 18 +++----
.../tsxIntrinsicAttributeErrors.errors.txt | 6 +--
...ponentWithDefaultTypeParameter3.errors.txt | 6 +--
...tsxSpreadAttributesResolution12.errors.txt | 8 +--
...tsxSpreadAttributesResolution16.errors.txt | 6 +--
.../tsxSpreadAttributesResolution2.errors.txt | 28 +++++-----
.../tsxSpreadAttributesResolution5.errors.txt | 8 +--
.../tsxSpreadAttributesResolution6.errors.txt | 10 ++--
...elessFunctionComponentOverload4.errors.txt | 26 ++++-----
...elessFunctionComponentOverload5.errors.txt | 30 +++++------
...tsxStatelessFunctionComponents1.errors.txt | 12 ++---
...ionComponentsWithTypeArguments4.errors.txt | 6 +--
.../reference/tsxUnionElementType6.errors.txt | 12 ++---
31 files changed, 239 insertions(+), 233 deletions(-)
diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts
index 7dd798a935d78..e0175c59bd8bd 100644
--- a/src/compiler/checker.ts
+++ b/src/compiler/checker.ts
@@ -10654,15 +10654,17 @@ namespace ts {
else if (source.symbol && source.flags & TypeFlags.Object && globalObjectType === source) {
reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
}
- else if (getObjectFlags(source) & ObjectFlags.JsxAttributes && target.flags & TypeFlags.Intersection) {
- const targetTypes = (target as IntersectionType).types;
+ else if (getObjectFlags(source) & ObjectFlags.JsxAttributes) {
+ const targetTypes = target.flags & TypeFlags.Intersection ? (target as IntersectionType).types : emptyArray;
const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);
const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);
- if (intrinsicAttributes !== errorType && intrinsicClassAttributes !== errorType &&
- (contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) {
- // do not report top error
- return result;
+ if (intrinsicAttributes === errorType || intrinsicClassAttributes === errorType ||
+ (!contains(targetTypes, intrinsicAttributes) && !contains(targetTypes, intrinsicClassAttributes))) {
+ // only report an error when the target isn't the intersection type with Intrinsic[Class]Attributes
+ const componentName = errorNode && isIdentifier(errorNode) ? unescapeLeadingUnderscores(errorNode.escapedText) : "the component";
+ reportError(Diagnostics.The_attributes_provided_to_0_are_not_assignable_to_type_1, componentName, typeToString(target));
}
+ return result;
}
reportRelationError(headMessage, source, target);
}
diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json
index 259c1ee4ea5f4..fcedd1ea2d211 100644
--- a/src/compiler/diagnosticMessages.json
+++ b/src/compiler/diagnosticMessages.json
@@ -2068,6 +2068,10 @@
"category": "Error",
"code": 2609
},
+ "The attributes provided to {0} are not assignable to type '{1}'": {
+ "category": "Error",
+ "code": 2610
+ },
"Cannot augment module '{0}' with value exports because it resolves to a non-module entity.": {
"category": "Error",
"code": 2649
diff --git a/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
index cf999188ebc59..c241d6e8ea5ee 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(42,11): error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'SingleChildProp'.
+tests/cases/conformance/jsx/file.tsx(42,11): error TS2610: The attributes provided to SingleChildComp are not assignable to type 'SingleChildProp'
Types of property 'children' are incompatible.
Type 'Element[]' is not assignable to type 'Element'.
Property 'type' is missing in type 'Element[]'.
@@ -48,7 +48,7 @@ tests/cases/conformance/jsx/file.tsx(42,11): error TS2322: Type '{ children: Ele
// Error
let k5 = <>>;
~~~~~~~~~~~~~~~
-!!! error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'SingleChildProp'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type 'Element[]' is not assignable to type 'Element'.
-!!! error TS2322: Property 'type' is missing in type 'Element[]'.
\ No newline at end of file
+!!! error TS2610: The attributes provided to SingleChildComp are not assignable to type 'SingleChildProp'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type 'Element[]' is not assignable to type 'Element'.
+!!! error TS2610: Property 'type' is missing in type 'Element[]'.
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
index ac342678508c5..13e2ced755e63 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
@@ -1,22 +1,22 @@
-tests/cases/conformance/jsx/file.tsx(14,10): error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(14,10): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Property 'children' is missing in type '{ a: number; b: string; }'.
tests/cases/conformance/jsx/file.tsx(17,11): error TS2710: 'children' are specified twice. The attribute named 'children' will be overwritten.
-tests/cases/conformance/jsx/file.tsx(31,6): error TS2322: Type '{ children: (Element | ((name: string) => Element))[]; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(31,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
-tests/cases/conformance/jsx/file.tsx(37,6): error TS2322: Type '{ children: (number | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(37,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(number | Element)[]' is not assignable to type 'string | Element'.
Type '(number | Element)[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(number | Element)[]'.
-tests/cases/conformance/jsx/file.tsx(43,6): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(43,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'string | Element'.
Type '(string | Element)[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(string | Element)[]'.
-tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type 'Element[]' is not assignable to type 'string | Element'.
Type 'Element[]' is not assignable to type 'Element'.
@@ -39,8 +39,8 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
// Error: missing children
let k = ;
~~~~
-!!! error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Property 'children' is missing in type '{ a: number; b: string; }'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Property 'children' is missing in type '{ a: number; b: string; }'.
let k0 =
@@ -61,11 +61,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
let k2 =
~~~~
-!!! error TS2322: Type '{ children: (Element | ((name: string) => Element))[]; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
-!!! error TS2322: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
-!!! error TS2322: Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
+!!! error TS2610: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
+!!! error TS2610: Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
My Div
{(name: string) =>
My name {name}
}
;
@@ -73,11 +73,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
let k3 =
~~~~
-!!! error TS2322: Type '{ children: (number | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '(number | Element)[]' is not assignable to type 'string | Element'.
-!!! error TS2322: Type '(number | Element)[]' is not assignable to type 'Element'.
-!!! error TS2322: Property 'type' is missing in type '(number | Element)[]'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(number | Element)[]' is not assignable to type 'string | Element'.
+!!! error TS2610: Type '(number | Element)[]' is not assignable to type 'Element'.
+!!! error TS2610: Property 'type' is missing in type '(number | Element)[]'.
My Div
{1000000}
;
@@ -85,11 +85,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
let k4 =
~~~~
-!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'string | Element'.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element'.
-!!! error TS2322: Property 'type' is missing in type '(string | Element)[]'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'string | Element'.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element'.
+!!! error TS2610: Property 'type' is missing in type '(string | Element)[]'.
My Div
hi hi hi!
;
@@ -97,11 +97,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Elem
let k5 =
~~~~
-!!! error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type 'Element[]' is not assignable to type 'string | Element'.
-!!! error TS2322: Type 'Element[]' is not assignable to type 'Element'.
-!!! error TS2322: Property 'type' is missing in type 'Element[]'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type 'Element[]' is not assignable to type 'string | Element'.
+!!! error TS2610: Type 'Element[]' is not assignable to type 'Element'.
+!!! error TS2610: Property 'type' is missing in type 'Element[]'.
My Div
My Div
;
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
index 986df05ceb686..c446f523bc0ec 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
@@ -1,5 +1,5 @@
tests/cases/conformance/jsx/file.tsx(24,28): error TS2551: Property 'NAme' does not exist on type 'IUser'. Did you mean 'Name'?
-tests/cases/conformance/jsx/file.tsx(32,10): error TS2322: Type '{ children: ((user: IUser) => Element)[]; }' is not assignable to type 'IFetchUserProps'.
+tests/cases/conformance/jsx/file.tsx(32,10): error TS2610: The attributes provided to FetchUser are not assignable to type 'IFetchUserProps'
Types of property 'children' are incompatible.
Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
@@ -41,10 +41,10 @@ tests/cases/conformance/jsx/file.tsx(32,10): error TS2322: Type '{ children: ((u
return (
~~~~~~~~~
-!!! error TS2322: Type '{ children: ((user: IUser) => Element)[]; }' is not assignable to type 'IFetchUserProps'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
-!!! error TS2322: Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
+!!! error TS2610: The attributes provided to FetchUser are not assignable to type 'IFetchUserProps'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
+!!! error TS2610: Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
diff --git a/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
index 8aa860f4889ef..ddf3e0ce1b331 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
@@ -1,10 +1,10 @@
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Property 'children' is missing in type '{ a: number; b: string; }'.
-tests/cases/conformance/jsx/file.tsx(24,6): error TS2322: Type '{ children: Element; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(24,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type 'Element' is not assignable to type 'Button'.
Property 'render' is missing in type 'Element'.
-tests/cases/conformance/jsx/file.tsx(28,6): error TS2322: Type '{ children: typeof Button; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(28,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type 'typeof Button' is not assignable to type 'Button'.
Property 'render' is missing in type 'typeof Button'.
@@ -32,25 +32,25 @@ tests/cases/conformance/jsx/file.tsx(28,6): error TS2322: Type '{ children: type
// Error: no children specified
let k = ;
~~~~
-!!! error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Property 'children' is missing in type '{ a: number; b: string; }'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Property 'children' is missing in type '{ a: number; b: string; }'.
// Error: JSX.element is not the same as JSX.ElementClass
let k1 =
~~~~
-!!! error TS2322: Type '{ children: Element; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type 'Element' is not assignable to type 'Button'.
-!!! error TS2322: Property 'render' is missing in type 'Element'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type 'Element' is not assignable to type 'Button'.
+!!! error TS2610: Property 'render' is missing in type 'Element'.
;
let k2 =
~~~~
-!!! error TS2322: Type '{ children: typeof Button; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type 'typeof Button' is not assignable to type 'Button'.
-!!! error TS2322: Property 'render' is missing in type 'typeof Button'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type 'typeof Button' is not assignable to type 'Button'.
+!!! error TS2610: Property 'render' is missing in type 'typeof Button'.
{Button}
;
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
index 6a2325cb82701..ae021c61eaf9e 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
@@ -1,14 +1,14 @@
-tests/cases/conformance/jsx/file.tsx(24,11): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(24,11): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
Type 'string | Element' is not assignable to type 'Element'.
Type 'string' is not assignable to type 'Element'.
-tests/cases/conformance/jsx/file.tsx(25,11): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
-tests/cases/conformance/jsx/file.tsx(27,11): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(27,11): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
@@ -40,23 +40,23 @@ tests/cases/conformance/jsx/file.tsx(27,11): error TS2322: Type '{ children: (st
// Error: whitespaces matters
let k1 = ;
~~~~
-!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element[]'.
-!!! error TS2322: Type 'string | Element' is not assignable to type 'Element'.
-!!! error TS2322: Type 'string' is not assignable to type 'Element'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
+!!! error TS2610: Type 'string | Element' is not assignable to type 'Element'.
+!!! error TS2610: Type 'string' is not assignable to type 'Element'.
let k2 =
~~~~
-!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element[]'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
;
let k3 =
~~~~
-!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
-!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element[]'.
+!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
+!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
;
\ No newline at end of file
diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
index 96e79a9cec707..8b722cf4ae9f5 100644
--- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
+++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
@@ -1,6 +1,6 @@
-tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'LinkProps'.
+tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
-tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'LinkProps'.
+tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,36): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
@@ -37,12 +37,12 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): err
const b0 = {console.log(k)}}} extra />; // k has type "left" | "right"
~~~~~~~~~~
-!!! error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'LinkProps'.
-!!! error TS2322: Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
+!!! error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
+!!! error TS2610: Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
const b2 = {console.log(k)}} extra />; // k has type "left" | "right"
~~~~~~~~~~
-!!! error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'LinkProps'.
-!!! error TS2322: Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
+!!! error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
+!!! error TS2610: Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
const b3 = ; // goTo has type"home" | "contact"
~~~~~
!!! error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
diff --git a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
index b4f6fcd9157b7..8e1a0ee983af4 100644
--- a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
+++ b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/inline/index.tsx(5,1): error TS2322: Type 'import("t
Property '__predomBrand' is missing in type 'Element'.
tests/cases/conformance/jsx/inline/index.tsx(21,21): error TS2605: JSX element type 'Element' is not a constructor function for JSX elements.
Property 'render' is missing in type 'Element'.
-tests/cases/conformance/jsx/inline/index.tsx(21,22): error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ children?: Element[]; }'.
+tests/cases/conformance/jsx/inline/index.tsx(21,22): error TS2610: The attributes provided to MySFC are not assignable to type '{ children?: Element[]; }'
Types of property 'children' are incompatible.
Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
@@ -10,7 +10,7 @@ tests/cases/conformance/jsx/inline/index.tsx(21,40): error TS2605: JSX element t
tests/cases/conformance/jsx/inline/index.tsx(21,40): error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
Property '__domBrand' is missing in type 'MyClass'.
tests/cases/conformance/jsx/inline/index.tsx(21,63): error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
-tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ x: number; y: number; children?: Element[]; }'.
+tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attributes provided to DOMSFC are not assignable to type '{ x: number; y: number; children?: Element[]; }'
Types of property 'children' are incompatible.
Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
@@ -106,10 +106,10 @@ tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2322: Type '{ child
!!! error TS2605: JSX element type 'Element' is not a constructor function for JSX elements.
!!! error TS2605: Property 'render' is missing in type 'Element'.
~~~~~
-!!! error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ children?: Element[]; }'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
-!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
+!!! error TS2610: The attributes provided to MySFC are not assignable to type '{ children?: Element[]; }'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
+!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
~~~~~~~~~~~~~~~~~~~~~~~
@@ -121,9 +121,9 @@ tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2322: Type '{ child
// Should fail, nondom isn't allowed as children of dom
const _brokenTree2 = {tree}{tree}
~~~~~~
-!!! error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ x: number; y: number; children?: Element[]; }'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
-!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
-!!! error TS2322: Property '__domBrand' is missing in type 'Element'.
+!!! error TS2610: The attributes provided to DOMSFC are not assignable to type '{ x: number; y: number; children?: Element[]; }'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
+!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
+!!! error TS2610: Property '__domBrand' is missing in type 'Element'.
\ No newline at end of file
diff --git a/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt b/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
index 632264144dd36..7d1df9859943e 100644
--- a/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
+++ b/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
@@ -1,8 +1,8 @@
tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(20,31): error TS2326: Types of property 'children' are incompatible.
Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: IntrinsicAttributes & LitProps<"x">) => "x"'.
Type '"y"' is not assignable to type '"x"'.
-tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(21,19): error TS2322: Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'.
- Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'LitProps<"x" | "y">'.
+tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(21,19): error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'
+ The attributes provided to ElemLit are not assignable to type 'LitProps<"x" | "y">'
Types of property 'children' are incompatible.
Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
Types of parameters 'p' and 'x' are incompatible.
@@ -11,8 +11,8 @@ tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(21,19): error TS2322:
Types of property 'prop' are incompatible.
Type '"x" | "y"' is not assignable to type '"x"'.
Type '"y"' is not assignable to type '"x"'.
-tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2322: Type '{ children: () => number; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
- Type '{ children: () => number; prop: "x"; }' is not assignable to type 'LitProps<"x">'.
+tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x">'
+ The attributes provided to ElemLit are not assignable to type 'LitProps<"x">'
Types of property 'children' are incompatible.
Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
Type 'number' is not assignable to type '"x"'.
@@ -45,20 +45,20 @@ tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2322:
!!! error TS2326: Type '"y"' is not assignable to type '"x"'.
const argchild = {p => "y"}
~~~~~~~
-!!! error TS2322: Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'.
-!!! error TS2322: Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'LitProps<"x" | "y">'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
-!!! error TS2322: Types of parameters 'p' and 'x' are incompatible.
-!!! error TS2322: Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
-!!! error TS2322: Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
-!!! error TS2322: Types of property 'prop' are incompatible.
-!!! error TS2322: Type '"x" | "y"' is not assignable to type '"x"'.
-!!! error TS2322: Type '"y"' is not assignable to type '"x"'.
+!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'
+!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'LitProps<"x" | "y">'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
+!!! error TS2610: Types of parameters 'p' and 'x' are incompatible.
+!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
+!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
+!!! error TS2610: Types of property 'prop' are incompatible.
+!!! error TS2610: Type '"x" | "y"' is not assignable to type '"x"'.
+!!! error TS2610: Type '"y"' is not assignable to type '"x"'.
const mismatched = {() => 12}
~~~~~~~
-!!! error TS2322: Type '{ children: () => number; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
-!!! error TS2322: Type '{ children: () => number; prop: "x"; }' is not assignable to type 'LitProps<"x">'.
-!!! error TS2322: Types of property 'children' are incompatible.
-!!! error TS2322: Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
-!!! error TS2322: Type 'number' is not assignable to type '"x"'.
\ No newline at end of file
+!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x">'
+!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'LitProps<"x">'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
+!!! error TS2610: Type 'number' is not assignable to type '"x"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeErrors.errors.txt b/tests/baselines/reference/tsxAttributeErrors.errors.txt
index 081f7b4fd6b98..95843146eb19c 100644
--- a/tests/baselines/reference/tsxAttributeErrors.errors.txt
+++ b/tests/baselines/reference/tsxAttributeErrors.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/tsxAttributeErrors.tsx(14,6): error TS2326: Types of
Type 'number' is not assignable to type 'string'.
tests/cases/conformance/jsx/tsxAttributeErrors.tsx(17,6): error TS2326: Types of property 'width' are incompatible.
Type 'string' is not assignable to type 'number'.
-tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2322: Type '{ text: number; }' is not assignable to type '{ text?: string; width?: number; }'.
+tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2610: The attributes provided to div are not assignable to type '{ text?: string; width?: number; }'
Types of property 'text' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -36,9 +36,9 @@ tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2322: Type '{
var attribs = { text: 100 };
;
~~~
-!!! error TS2322: Type '{ text: number; }' is not assignable to type '{ text?: string; width?: number; }'.
-!!! error TS2322: Types of property 'text' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type 'string'.
+!!! error TS2610: The attributes provided to div are not assignable to type '{ text?: string; width?: number; }'
+!!! error TS2610: Types of property 'text' are incompatible.
+!!! error TS2610: Type 'number' is not assignable to type 'string'.
// No errors here
;
diff --git a/tests/baselines/reference/tsxAttributeResolution1.errors.txt b/tests/baselines/reference/tsxAttributeResolution1.errors.txt
index ab881bfa6f902..01e42f814628e 100644
--- a/tests/baselines/reference/tsxAttributeResolution1.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution1.errors.txt
@@ -5,7 +5,7 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2559: Type '{ y: string; }'
tests/cases/conformance/jsx/file.tsx(26,8): error TS2326: Types of property 'x' are incompatible.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/jsx/file.tsx(27,2): error TS2559: Type '{ var: string; }' has no properties in common with type 'Attribs1'.
-tests/cases/conformance/jsx/file.tsx(29,2): error TS2322: Type '{}' is not assignable to type '{ reqd: string; }'.
+tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to test2 are not assignable to type '{ reqd: string; }'
Property 'reqd' is missing in type '{}'.
tests/cases/conformance/jsx/file.tsx(30,8): error TS2326: Types of property 'reqd' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -54,8 +54,8 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2326: Types of property 'req
; // Error, missing reqd
~~~~~
-!!! error TS2322: Type '{}' is not assignable to type '{ reqd: string; }'.
-!!! error TS2322: Property 'reqd' is missing in type '{}'.
+!!! error TS2610: The attributes provided to test2 are not assignable to type '{ reqd: string; }'
+!!! error TS2610: Property 'reqd' is missing in type '{}'.
; // Error, reqd is not string
~~~~~~~~~
!!! error TS2326: Types of property 'reqd' are incompatible.
diff --git a/tests/baselines/reference/tsxAttributeResolution12.errors.txt b/tests/baselines/reference/tsxAttributeResolution12.errors.txt
index 802a3b1d9d54e..9cb2a3f124188 100644
--- a/tests/baselines/reference/tsxAttributeResolution12.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution12.errors.txt
@@ -1,8 +1,8 @@
-tests/cases/conformance/jsx/file.tsx(25,11): error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
- Type '{}' is not assignable to type '{ reqd: any; }'.
+tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to T are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
+ The attributes provided to T are not assignable to type '{ reqd: any; }'
Property 'reqd' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(28,11): error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
- Type '{}' is not assignable to type '{ reqd: any; }'.
+tests/cases/conformance/jsx/file.tsx(28,11): error TS2610: The attributes provided to the component are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
+ The attributes provided to the component are not assignable to type '{ reqd: any; }'
Property 'reqd' is missing in type '{}'.
@@ -46,15 +46,15 @@ tests/cases/conformance/jsx/file.tsx(28,11): error TS2322: Type '{}' is not assi
const T = TestMod.Test;
var t1 = ;
~
-!!! error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
-!!! error TS2322: Type '{}' is not assignable to type '{ reqd: any; }'.
-!!! error TS2322: Property 'reqd' is missing in type '{}'.
+!!! error TS2610: The attributes provided to T are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
+!!! error TS2610: The attributes provided to T are not assignable to type '{ reqd: any; }'
+!!! error TS2610: Property 'reqd' is missing in type '{}'.
// Should error
var t2 = ;
~~~~~~~~~~~~
-!!! error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
-!!! error TS2322: Type '{}' is not assignable to type '{ reqd: any; }'.
-!!! error TS2322: Property 'reqd' is missing in type '{}'.
+!!! error TS2610: The attributes provided to the component are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
+!!! error TS2610: The attributes provided to the component are not assignable to type '{ reqd: any; }'
+!!! error TS2610: Property 'reqd' is missing in type '{}'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeResolution3.errors.txt b/tests/baselines/reference/tsxAttributeResolution3.errors.txt
index 94205714803b2..7f2f8570f38d7 100644
--- a/tests/baselines/reference/tsxAttributeResolution3.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution3.errors.txt
@@ -1,7 +1,7 @@
-tests/cases/conformance/jsx/file.tsx(19,2): error TS2322: Type '{ x: number; }' is not assignable to type 'Attribs1'.
+tests/cases/conformance/jsx/file.tsx(19,2): error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
-tests/cases/conformance/jsx/file.tsx(23,2): error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'.
+tests/cases/conformance/jsx/file.tsx(23,2): error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
Property 'x' is missing in type '{ y: number; }'.
tests/cases/conformance/jsx/file.tsx(31,8): error TS2326: Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -28,16 +28,16 @@ tests/cases/conformance/jsx/file.tsx(31,8): error TS2326: Types of property 'x'
var obj2 = { x: 32 };
~~~~~
-!!! error TS2322: Type '{ x: number; }' is not assignable to type 'Attribs1'.
-!!! error TS2322: Types of property 'x' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type 'string'.
+!!! error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+!!! error TS2610: Types of property 'x' are incompatible.
+!!! error TS2610: Type 'number' is not assignable to type 'string'.
// Error, x is missing
var obj3 = { y: 32 };
~~~~~
-!!! error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'.
-!!! error TS2322: Property 'x' is missing in type '{ y: number; }'.
+!!! error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+!!! error TS2610: Property 'x' is missing in type '{ y: number; }'.
// OK
var obj4 = { x: 32, y: 32 };
diff --git a/tests/baselines/reference/tsxAttributeResolution5.errors.txt b/tests/baselines/reference/tsxAttributeResolution5.errors.txt
index 92b8a254c1fe1..c00dd5b7c4016 100644
--- a/tests/baselines/reference/tsxAttributeResolution5.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution5.errors.txt
@@ -5,7 +5,7 @@ tests/cases/conformance/jsx/file.tsx(21,10): error TS2322: Type 'T' is not assig
tests/cases/conformance/jsx/file.tsx(25,10): error TS2322: Type 'T' is not assignable to type 'Attribs1'.
Type '{ y: string; }' is not assignable to type 'Attribs1'.
Property 'x' is missing in type '{ y: string; }'.
-tests/cases/conformance/jsx/file.tsx(29,2): error TS2322: Type '{}' is not assignable to type 'Attribs1'.
+tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
Property 'x' is missing in type '{}'.
@@ -49,7 +49,7 @@ tests/cases/conformance/jsx/file.tsx(29,2): error TS2322: Type '{}' is not assig
; // Error, missing x
~~~~~
-!!! error TS2322: Type '{}' is not assignable to type 'Attribs1'.
-!!! error TS2322: Property 'x' is missing in type '{}'.
+!!! error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+!!! error TS2610: Property 'x' is missing in type '{}'.
; // Error, missing toString
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeResolution6.errors.txt b/tests/baselines/reference/tsxAttributeResolution6.errors.txt
index e9ad3c3e8deb4..8edde3bcc4932 100644
--- a/tests/baselines/reference/tsxAttributeResolution6.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution6.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/file.tsx(10,8): error TS2326: Types of property 's'
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(11,8): error TS2326: Types of property 'n' are incompatible.
Type 'string' is not assignable to type 'boolean'.
-tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{}' is not assignable to type '{ n: boolean; }'.
+tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to test2 are not assignable to type '{ n: boolean; }'
Property 'n' is missing in type '{}'.
@@ -26,8 +26,8 @@ tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{}' is not assig
!!! error TS2326: Type 'string' is not assignable to type 'boolean'.
;
~~~~~
-!!! error TS2322: Type '{}' is not assignable to type '{ n: boolean; }'.
-!!! error TS2322: Property 'n' is missing in type '{}'.
+!!! error TS2610: The attributes provided to test2 are not assignable to type '{ n: boolean; }'
+!!! error TS2610: Property 'n' is missing in type '{}'.
// OK
;
diff --git a/tests/baselines/reference/tsxElementResolution3.errors.txt b/tests/baselines/reference/tsxElementResolution3.errors.txt
index fdc278be05391..aadad2273a73c 100644
--- a/tests/baselines/reference/tsxElementResolution3.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution3.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'.
+tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to span are not assignable to type '{ n: string; }'
Property 'n' is missing in type '{ w: string; }'.
@@ -16,5 +16,5 @@ tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{ w: string; }'
// Error
;
~~~~
-!!! error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'.
-!!! error TS2322: Property 'n' is missing in type '{ w: string; }'.
\ No newline at end of file
+!!! error TS2610: The attributes provided to span are not assignable to type '{ n: string; }'
+!!! error TS2610: Property 'n' is missing in type '{ w: string; }'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxElementResolution4.errors.txt b/tests/baselines/reference/tsxElementResolution4.errors.txt
index 48074b87a6b03..6025e84cff077 100644
--- a/tests/baselines/reference/tsxElementResolution4.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution4.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(16,2): error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'.
+tests/cases/conformance/jsx/file.tsx(16,2): error TS2610: The attributes provided to span are not assignable to type '{ m: string; }'
Property 'm' is missing in type '{ q: string; }'.
@@ -20,6 +20,6 @@ tests/cases/conformance/jsx/file.tsx(16,2): error TS2322: Type '{ q: string; }'
// Error
;
~~~~
-!!! error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'.
-!!! error TS2322: Property 'm' is missing in type '{ q: string; }'.
+!!! error TS2610: The attributes provided to span are not assignable to type '{ m: string; }'
+!!! error TS2610: Property 'm' is missing in type '{ q: string; }'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxElementResolution9.errors.txt b/tests/baselines/reference/tsxElementResolution9.errors.txt
index ece14e20de41a..11d8fc5377656 100644
--- a/tests/baselines/reference/tsxElementResolution9.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution9.errors.txt
@@ -1,8 +1,8 @@
-tests/cases/conformance/jsx/file.tsx(11,2): error TS2322: Type '{}' is not assignable to type 'string | number'.
+tests/cases/conformance/jsx/file.tsx(11,2): error TS2610: The attributes provided to Obj1 are not assignable to type 'string | number'
Type '{}' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(18,2): error TS2322: Type '{}' is not assignable to type 'string | number'.
+tests/cases/conformance/jsx/file.tsx(18,2): error TS2610: The attributes provided to Obj2 are not assignable to type 'string | number'
Type '{}' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(25,2): error TS2322: Type '{ x: number; }' is not assignable to type 'string | number'.
+tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provided to Obj3 are not assignable to type 'string | number'
Type '{ x: number; }' is not assignable to type 'number'.
@@ -19,8 +19,8 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2322: Type '{ x: number; }'
var Obj1: Obj1;
; // Error, return type is not an object type
~~~~
-!!! error TS2322: Type '{}' is not assignable to type 'string | number'.
-!!! error TS2322: Type '{}' is not assignable to type 'number'.
+!!! error TS2610: The attributes provided to Obj1 are not assignable to type 'string | number'
+!!! error TS2610: Type '{}' is not assignable to type 'number'.
interface Obj2 {
(n: string): { x: number };
@@ -29,8 +29,8 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2322: Type '{ x: number; }'
var Obj2: Obj2;
; // Error, return type is not an object type
~~~~
-!!! error TS2322: Type '{}' is not assignable to type 'string | number'.
-!!! error TS2322: Type '{}' is not assignable to type 'number'.
+!!! error TS2610: The attributes provided to Obj2 are not assignable to type 'string | number'
+!!! error TS2610: Type '{}' is not assignable to type 'number'.
interface Obj3 {
(n: string): { x: number };
@@ -39,6 +39,6 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2322: Type '{ x: number; }'
var Obj3: Obj3;
; // OK
~~~~
-!!! error TS2322: Type '{ x: number; }' is not assignable to type 'string | number'.
-!!! error TS2322: Type '{ x: number; }' is not assignable to type 'number'.
+!!! error TS2610: The attributes provided to Obj3 are not assignable to type 'string | number'
+!!! error TS2610: Type '{ x: number; }' is not assignable to type 'number'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt b/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
index 1fa2663e874d5..61af91e34a8cd 100644
--- a/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
+++ b/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes'.
+tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2610: The attributes provided to E are not assignable to type 'IntrinsicAttributes'
Property 'key' is missing in type '{ x: number; }'.
@@ -33,6 +33,6 @@ tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2322:
var E: I;
~
-!!! error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes'.
-!!! error TS2322: Property 'key' is missing in type '{ x: number; }'.
+!!! error TS2610: The attributes provided to E are not assignable to type 'IntrinsicAttributes'
+!!! error TS2610: Property 'key' is missing in type '{ x: number; }'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt b/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
index 669c315b71a38..e711e91a46c89 100644
--- a/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
+++ b/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(13,11): error TS2322: Type '{}' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(13,11): error TS2610: The attributes provided to MyComp are not assignable to type 'Prop'
Property 'a' is missing in type '{}'.
tests/cases/conformance/jsx/file.tsx(19,18): error TS2326: Types of property 'a' are incompatible.
Type 'string' is not assignable to type 'number'.
@@ -19,8 +19,8 @@ tests/cases/conformance/jsx/file.tsx(19,18): error TS2326: Types of property 'a'
// Error
let x1 =
~~~~~~
-!!! error TS2322: Type '{}' is not assignable to type 'Prop'.
-!!! error TS2322: Property 'a' is missing in type '{}'.
+!!! error TS2610: The attributes provided to MyComp are not assignable to type 'Prop'
+!!! error TS2610: Property 'a' is missing in type '{}'.
// OK
let x =
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
index 68a7a8a356d03..ab6debd5d6c76 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/file.tsx(27,33): error TS2326: Types of property 'y'
Type 'true' is not assignable to type 'false'.
tests/cases/conformance/jsx/file.tsx(28,50): error TS2326: Types of property 'x' are incompatible.
Type '3' is not assignable to type '2'.
-tests/cases/conformance/jsx/file.tsx(30,11): error TS2322: Type '{ y: true; x: 2; overwrite: string; }' is not assignable to type 'Prop'.
+tests/cases/conformance/jsx/file.tsx(30,11): error TS2610: The attributes provided to OverWriteAttr are not assignable to type 'Prop'
Types of property 'y' are incompatible.
Type 'true' is not assignable to type 'false'.
@@ -45,8 +45,8 @@ tests/cases/conformance/jsx/file.tsx(30,11): error TS2322: Type '{ y: true; x: 2
let x2 =
let x3 =
~~~~~~~~~~~~~
-!!! error TS2322: Type '{ y: true; x: 2; overwrite: string; }' is not assignable to type 'Prop'.
-!!! error TS2322: Types of property 'y' are incompatible.
-!!! error TS2322: Type 'true' is not assignable to type 'false'.
+!!! error TS2610: The attributes provided to OverWriteAttr are not assignable to type 'Prop'
+!!! error TS2610: Types of property 'y' are incompatible.
+!!! error TS2610: Type 'true' is not assignable to type 'false'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
index accecdff013f8..becfbcbb7788b 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ property1: string; property2: number; }' is not assignable to type 'AnotherComponentProps'.
+tests/cases/conformance/jsx/file.tsx(11,10): error TS2610: The attributes provided to AnotherComponent are not assignable to type 'AnotherComponentProps'
Property 'AnotherProperty1' is missing in type '{ property1: string; property2: number; }'.
@@ -15,8 +15,8 @@ tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ property1: st
// Error: missing property
~~~~~~~~~~~~~~~~
-!!! error TS2322: Type '{ property1: string; property2: number; }' is not assignable to type 'AnotherComponentProps'.
-!!! error TS2322: Property 'AnotherProperty1' is missing in type '{ property1: string; property2: number; }'.
+!!! error TS2610: The attributes provided to AnotherComponent are not assignable to type 'AnotherComponentProps'
+!!! error TS2610: Property 'AnotherProperty1' is missing in type '{ property1: string; property2: number; }'.
);
}
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
index d472e032a1e03..9df88251e61b6 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
@@ -1,15 +1,15 @@
-tests/cases/conformance/jsx/file.tsx(17,10): error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
+tests/cases/conformance/jsx/file.tsx(17,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
Property 'x' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(18,10): error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
+tests/cases/conformance/jsx/file.tsx(18,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
Property 'x' is missing in type '{}'.
tests/cases/conformance/jsx/file.tsx(19,19): error TS2326: Types of property 'x' are incompatible.
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(19,21): error TS2326: Types of property 'y' are incompatible.
Type 'true' is not assignable to type '"2"'.
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{ x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
-tests/cases/conformance/jsx/file.tsx(21,11): error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
+tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -33,12 +33,12 @@ tests/cases/conformance/jsx/file.tsx(21,11): error TS2322: Type '{ X: string; x:
// Error
let p = ;
~~~~~~~~
-!!! error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
-!!! error TS2322: Property 'x' is missing in type '{}'.
+!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: Property 'x' is missing in type '{}'.
let y = ;
~~~~~~~~
-!!! error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
-!!! error TS2322: Property 'x' is missing in type '{}'.
+!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: Property 'x' is missing in type '{}'.
let z = ;
~
!!! error TS2326: Types of property 'x' are incompatible.
@@ -48,11 +48,11 @@ tests/cases/conformance/jsx/file.tsx(21,11): error TS2322: Type '{ X: string; x:
!!! error TS2326: Type 'true' is not assignable to type '"2"'.
let w = ;
~~~~~~~~
-!!! error TS2322: Type '{ x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
-!!! error TS2322: Types of property 'x' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type 'string'.
+!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: Types of property 'x' are incompatible.
+!!! error TS2610: Type 'number' is not assignable to type 'string'.
let w1 = ;
~~~~~~~~
-!!! error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
-!!! error TS2322: Types of property 'x' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type 'string'.
\ No newline at end of file
+!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: Types of property 'x' are incompatible.
+!!! error TS2610: Type 'number' is not assignable to type 'string'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
index 22fa2022badb7..ef5415259f699 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{ x: string; y: number; }' is not assignable to type 'PoisonedProp'.
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
Types of property 'y' are incompatible.
Type 'number' is not assignable to type '2'.
tests/cases/conformance/jsx/file.tsx(33,10): error TS2559: Type '{ prop1: boolean; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'.
@@ -26,9 +26,9 @@ tests/cases/conformance/jsx/file.tsx(33,10): error TS2559: Type '{ prop1: boolea
// Error as "obj" has type { x: string; y: number }
let p = ;
~~~~~~~~
-!!! error TS2322: Type '{ x: string; y: number; }' is not assignable to type 'PoisonedProp'.
-!!! error TS2322: Types of property 'y' are incompatible.
-!!! error TS2322: Type 'number' is not assignable to type '2'.
+!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: Types of property 'y' are incompatible.
+!!! error TS2610: Type 'number' is not assignable to type '2'.
class EmptyProp extends React.Component<{}, {}> {
render() {
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
index 65deca2aff4d8..5b2d662bc2425 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/file.tsx(13,10): error TS2322: Type '{ editable: true; }' is not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'.
- Type '{ editable: true; }' is not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'.
+tests/cases/conformance/jsx/file.tsx(13,10): error TS2610: The attributes provided to TextComponent are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
+ The attributes provided to TextComponent are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
Property 'onEdit' is missing in type '{ editable: true; }'.
@@ -18,9 +18,9 @@ tests/cases/conformance/jsx/file.tsx(13,10): error TS2322: Type '{ editable: tru
// Error
let x =
~~~~~~~~~~~~~
-!!! error TS2322: Type '{ editable: true; }' is not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'.
-!!! error TS2322: Type '{ editable: true; }' is not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'.
-!!! error TS2322: Property 'onEdit' is missing in type '{ editable: true; }'.
+!!! error TS2610: The attributes provided to TextComponent are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
+!!! error TS2610: The attributes provided to TextComponent are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
+!!! error TS2610: Property 'onEdit' is missing in type '{ editable: true; }'.
const textProps: TextProps = {
editable: false
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
index a9019c17e0db6..b0ceb1c69b31e 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
@@ -1,14 +1,14 @@
-tests/cases/conformance/jsx/file.tsx(12,13): error TS2322: Type '{ extraProp: true; }' is not assignable to type '{ yy: number; yy1: string; }'.
+tests/cases/conformance/jsx/file.tsx(12,13): error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
Property 'yy' is missing in type '{ extraProp: true; }'.
-tests/cases/conformance/jsx/file.tsx(13,13): error TS2322: Type '{ yy: number; }' is not assignable to type '{ yy: number; yy1: string; }'.
+tests/cases/conformance/jsx/file.tsx(13,13): error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
Property 'yy1' is missing in type '{ yy: number; }'.
tests/cases/conformance/jsx/file.tsx(14,31): error TS2326: Types of property 'yy1' are incompatible.
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(16,31): error TS2339: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
-tests/cases/conformance/jsx/file.tsx(17,13): error TS2322: Type '{ yy: boolean; yy1: string; }' is not assignable to type '{ yy: number; yy1: string; }'.
+tests/cases/conformance/jsx/file.tsx(17,13): error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
Types of property 'yy' are incompatible.
Type 'boolean' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(25,13): error TS2322: Type '{ extra-data: true; }' is not assignable to type '{ yy: string; direction?: number; }'.
+tests/cases/conformance/jsx/file.tsx(25,13): error TS2610: The attributes provided to TestingOneThing are not assignable to type '{ yy: string; direction?: number; }'
Property 'yy' is missing in type '{ extra-data: true; }'.
tests/cases/conformance/jsx/file.tsx(26,40): error TS2326: Types of property 'direction' are incompatible.
Type 'string' is not assignable to type 'number'.
@@ -36,12 +36,12 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
// Error
const c0 = ; // extra property;
~~~~~~~~
-!!! error TS2322: Type '{ extraProp: true; }' is not assignable to type '{ yy: number; yy1: string; }'.
-!!! error TS2322: Property 'yy' is missing in type '{ extraProp: true; }'.
+!!! error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+!!! error TS2610: Property 'yy' is missing in type '{ extraProp: true; }'.
const c1 = ; // missing property;
~~~~~~~~
-!!! error TS2322: Type '{ yy: number; }' is not assignable to type '{ yy: number; yy1: string; }'.
-!!! error TS2322: Property 'yy1' is missing in type '{ yy: number; }'.
+!!! error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+!!! error TS2610: Property 'yy1' is missing in type '{ yy: number; }'.
const c2 = ; // type incompatible;
~~~
!!! error TS2326: Types of property 'yy1' are incompatible.
@@ -52,9 +52,9 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
!!! error TS2339: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
const c5 = ; // type incompatible;
~~~~~~~~
-!!! error TS2322: Type '{ yy: boolean; yy1: string; }' is not assignable to type '{ yy: number; yy1: string; }'.
-!!! error TS2322: Types of property 'yy' are incompatible.
-!!! error TS2322: Type 'boolean' is not assignable to type 'number'.
+!!! error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+!!! error TS2610: Types of property 'yy' are incompatible.
+!!! error TS2610: Type 'boolean' is not assignable to type 'number'.
const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not
const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not
@@ -64,8 +64,8 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
// Error
const d1 =
~~~~~~~~~~~~~~~
-!!! error TS2322: Type '{ extra-data: true; }' is not assignable to type '{ yy: string; direction?: number; }'.
-!!! error TS2322: Property 'yy' is missing in type '{ extra-data: true; }'.
+!!! error TS2610: The attributes provided to TestingOneThing are not assignable to type '{ yy: string; direction?: number; }'
+!!! error TS2610: Property 'yy' is missing in type '{ extra-data: true; }'.
const d2 =
~~~~~~~~~~~~~~~~
!!! error TS2326: Types of property 'direction' are incompatible.
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
index b0b05adfa6a8f..e517847e6ed75 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
@@ -1,12 +1,12 @@
-tests/cases/conformance/jsx/file.tsx(48,13): error TS2322: Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'HyphenProps'.
+tests/cases/conformance/jsx/file.tsx(48,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }'.
-tests/cases/conformance/jsx/file.tsx(49,13): error TS2322: Type '{ children: string; to: string; onClick: (e: any) => void; }' is not assignable to type 'HyphenProps'.
+tests/cases/conformance/jsx/file.tsx(49,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: any) => void; }'.
-tests/cases/conformance/jsx/file.tsx(50,13): error TS2322: Type '{ onClick: () => void; to: string; }' is not assignable to type 'HyphenProps'.
+tests/cases/conformance/jsx/file.tsx(50,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ onClick: () => void; to: string; }'.
-tests/cases/conformance/jsx/file.tsx(51,13): error TS2322: Type '{ onClick: (k: MouseEvent) => void; to: string; }' is not assignable to type 'HyphenProps'.
+tests/cases/conformance/jsx/file.tsx(51,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ onClick: (k: MouseEvent) => void; to: string; }'.
-tests/cases/conformance/jsx/file.tsx(53,13): error TS2322: Type '{ to: string; onClick(e: any): void; }' is not assignable to type 'HyphenProps'.
+tests/cases/conformance/jsx/file.tsx(53,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ to: string; onClick(e: any): void; }'.
tests/cases/conformance/jsx/file.tsx(54,51): error TS2326: Types of property 'children' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -66,25 +66,25 @@ tests/cases/conformance/jsx/file.tsx(56,24): error TS2326: Types of property 'da
// Error
const b0 = {}}>GO; // extra property;
~~~~~~~~~~
-!!! error TS2322: Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'HyphenProps'.
-!!! error TS2322: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }'.
+!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }'.
const b1 = {}} {...obj0}>Hello world; // extra property;
~~~~~~~~~~
-!!! error TS2322: Type '{ children: string; to: string; onClick: (e: any) => void; }' is not assignable to type 'HyphenProps'.
-!!! error TS2322: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: any) => void; }'.
+!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: any) => void; }'.
const b2 = ; // extra property
~~~~~~~~~~
-!!! error TS2322: Type '{ onClick: () => void; to: string; }' is not assignable to type 'HyphenProps'.
-!!! error TS2322: Property '"data-format"' is missing in type '{ onClick: () => void; to: string; }'.
+!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: Property '"data-format"' is missing in type '{ onClick: () => void; to: string; }'.
const b3 = {}}} />; // extra property
~~~~~~~~~~
-!!! error TS2322: Type '{ onClick: (k: MouseEvent) => void; to: string; }' is not assignable to type 'HyphenProps'.
-!!! error TS2322: Property '"data-format"' is missing in type '{ onClick: (k: MouseEvent) => void; to: string; }'.
+!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: Property '"data-format"' is missing in type '{ onClick: (k: MouseEvent) => void; to: string; }'.
const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed
const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes
~~~~~~~~~~
-!!! error TS2322: Type '{ to: string; onClick(e: any): void; }' is not assignable to type 'HyphenProps'.
-!!! error TS2322: Property '"data-format"' is missing in type '{ to: string; onClick(e: any): void; }'.
+!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: Property '"data-format"' is missing in type '{ to: string; onClick(e: any): void; }'.
const b6 = ; // incorrect type for optional attribute
~~~~~~~~~~~~~
!!! error TS2326: Types of property 'children' are incompatible.
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
index 2a5f87adb97e6..32ebe3fe9a22a 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
@@ -1,9 +1,9 @@
-tests/cases/conformance/jsx/file.tsx(19,10): error TS2322: Type '{ naaame: string; }' is not assignable to type '{ name: string; }'.
+tests/cases/conformance/jsx/file.tsx(19,10): error TS2610: The attributes provided to Greet are not assignable to type '{ name: string; }'
Property 'name' is missing in type '{ naaame: string; }'.
tests/cases/conformance/jsx/file.tsx(27,15): error TS2326: Types of property 'name' are incompatible.
Type 'number' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(29,10): error TS2559: Type '{ naaaaaaame: string; }' has no properties in common with type 'IntrinsicAttributes & { name?: string; }'.
-tests/cases/conformance/jsx/file.tsx(34,10): error TS2322: Type '{ extra-prop-name: string; }' is not assignable to type '{ "prop-name": string; }'.
+tests/cases/conformance/jsx/file.tsx(34,10): error TS2610: The attributes provided to MeetAndGreet are not assignable to type '{ "prop-name": string; }'
Property '"prop-name"' is missing in type '{ extra-prop-name: string; }'.
tests/cases/conformance/jsx/file.tsx(37,10): error TS2559: Type '{ prop1: true; }' has no properties in common with type 'IntrinsicAttributes'.
tests/cases/conformance/jsx/file.tsx(38,11): error TS2559: Type '{ ref: (x: any) => any; }' has no properties in common with type 'IntrinsicAttributes'.
@@ -32,8 +32,8 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea
// Error
let b = ;
~~~~~
-!!! error TS2322: Type '{ naaame: string; }' is not assignable to type '{ name: string; }'.
-!!! error TS2322: Property 'name' is missing in type '{ naaame: string; }'.
+!!! error TS2610: The attributes provided to Greet are not assignable to type '{ name: string; }'
+!!! error TS2610: Property 'name' is missing in type '{ naaame: string; }'.
// OK
let c = ;
@@ -55,8 +55,8 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea
// Error
let h = ;
~~~~~~~~~~~~
-!!! error TS2322: Type '{ extra-prop-name: string; }' is not assignable to type '{ "prop-name": string; }'.
-!!! error TS2322: Property '"prop-name"' is missing in type '{ extra-prop-name: string; }'.
+!!! error TS2610: The attributes provided to MeetAndGreet are not assignable to type '{ "prop-name": string; }'
+!!! error TS2610: Property '"prop-name"' is missing in type '{ extra-prop-name: string; }'.
// Error
let i =
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
index 61f8084866717..fe313effb2b10 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(9,15): error TS2322: Type '{ a: number; }' is not assignable to type '{ b: {}; a: number; }'.
+tests/cases/conformance/jsx/file.tsx(9,15): error TS2610: The attributes provided to OverloadComponent are not assignable to type '{ b: {}; a: number; }'
Property 'b' is missing in type '{ a: number; }'.
tests/cases/conformance/jsx/file.tsx(10,15): error TS2322: Type 'T & { ignore-prop: true; }' is not assignable to type 'IntrinsicAttributes & { b: {}; a: {}; }'.
Type 'T & { ignore-prop: true; }' is not assignable to type '{ b: {}; a: {}; }'.
@@ -16,8 +16,8 @@ tests/cases/conformance/jsx/file.tsx(10,15): error TS2322: Type 'T & { ignore-pr
function Baz(arg1: T, arg2: U) {
let a0 =
~~~~~~~~~~~~~~~~~
-!!! error TS2322: Type '{ a: number; }' is not assignable to type '{ b: {}; a: number; }'.
-!!! error TS2322: Property 'b' is missing in type '{ a: number; }'.
+!!! error TS2610: The attributes provided to OverloadComponent are not assignable to type '{ b: {}; a: number; }'
+!!! error TS2610: Property 'b' is missing in type '{ a: number; }'.
let a2 = // missing a
~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'T & { ignore-prop: true; }' is not assignable to type 'IntrinsicAttributes & { b: {}; a: {}; }'.
diff --git a/tests/baselines/reference/tsxUnionElementType6.errors.txt b/tests/baselines/reference/tsxUnionElementType6.errors.txt
index 1dc5a05f8b529..64dbce38eeba7 100644
--- a/tests/baselines/reference/tsxUnionElementType6.errors.txt
+++ b/tests/baselines/reference/tsxUnionElementType6.errors.txt
@@ -1,9 +1,9 @@
tests/cases/conformance/jsx/file.tsx(18,10): error TS2559: Type '{ x: true; }' has no properties in common with type 'IntrinsicAttributes'.
tests/cases/conformance/jsx/file.tsx(19,27): error TS2326: Types of property 'x' are incompatible.
Type 'string' is not assignable to type 'boolean'.
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{}' is not assignable to type '{ x: boolean; }'.
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
Property 'x' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(21,10): error TS2322: Type '{ data-prop: true; }' is not assignable to type '{ x: boolean; }'.
+tests/cases/conformance/jsx/file.tsx(21,10): error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
Property 'x' is missing in type '{ data-prop: true; }'.
@@ -34,11 +34,11 @@ tests/cases/conformance/jsx/file.tsx(21,10): error TS2322: Type '{ data-prop: tr
!!! error TS2326: Type 'string' is not assignable to type 'boolean'.
let c = ;
~~~~~~~~~~~~~~~~
-!!! error TS2322: Type '{}' is not assignable to type '{ x: boolean; }'.
-!!! error TS2322: Property 'x' is missing in type '{}'.
+!!! error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
+!!! error TS2610: Property 'x' is missing in type '{}'.
let d = ;
~~~~~~~~~~~~~~~~
-!!! error TS2322: Type '{ data-prop: true; }' is not assignable to type '{ x: boolean; }'.
-!!! error TS2322: Property 'x' is missing in type '{ data-prop: true; }'.
+!!! error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
+!!! error TS2610: Property 'x' is missing in type '{ data-prop: true; }'.
\ No newline at end of file
From 4d1643aa5f9db7fab5e95cab75cf239735685875 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Thu, 31 May 2018 10:10:56 -0700
Subject: [PATCH 2/3] Fix unknownType fallback and print entity names
1. also remove "the component" fallback -- replace with an assert
2. Also add quotes around the component's name
---
src/compiler/checker.ts | 8 +--
src/compiler/diagnosticMessages.json | 2 +-
.../checkJsxChildrenProperty14.errors.txt | 4 +-
.../checkJsxChildrenProperty2.errors.txt | 20 +++----
.../checkJsxChildrenProperty4.errors.txt | 4 +-
.../checkJsxChildrenProperty5.errors.txt | 12 ++--
.../checkJsxChildrenProperty7.errors.txt | 12 ++--
...StringLiteralsInJsxAttributes02.errors.txt | 8 +--
...sxFactoryDeclarationsLocalTypes.errors.txt | 8 +--
...xChildrenGenericContextualTypes.errors.txt | 56 +++++++++----------
.../reference/tsxAttributeErrors.errors.txt | 4 +-
.../tsxAttributeResolution1.errors.txt | 4 +-
.../tsxAttributeResolution12.errors.txt | 20 +++----
.../tsxAttributeResolution3.errors.txt | 8 +--
.../tsxAttributeResolution5.errors.txt | 4 +-
.../tsxAttributeResolution6.errors.txt | 4 +-
.../tsxElementResolution3.errors.txt | 4 +-
.../tsxElementResolution4.errors.txt | 4 +-
.../tsxElementResolution9.errors.txt | 12 ++--
.../tsxIntrinsicAttributeErrors.errors.txt | 4 +-
...ponentWithDefaultTypeParameter3.errors.txt | 4 +-
...tsxSpreadAttributesResolution12.errors.txt | 4 +-
...tsxSpreadAttributesResolution16.errors.txt | 4 +-
.../tsxSpreadAttributesResolution2.errors.txt | 16 +++---
.../tsxSpreadAttributesResolution5.errors.txt | 4 +-
.../tsxSpreadAttributesResolution6.errors.txt | 8 +--
...elessFunctionComponentOverload4.errors.txt | 16 +++---
...elessFunctionComponentOverload5.errors.txt | 20 +++----
...tsxStatelessFunctionComponents1.errors.txt | 8 +--
...ionComponentsWithTypeArguments4.errors.txt | 4 +-
.../reference/tsxUnionElementType6.errors.txt | 8 +--
31 files changed, 145 insertions(+), 153 deletions(-)
diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts
index e0175c59bd8bd..73c2426cd6895 100644
--- a/src/compiler/checker.ts
+++ b/src/compiler/checker.ts
@@ -10658,11 +10658,11 @@ namespace ts {
const targetTypes = target.flags & TypeFlags.Intersection ? (target as IntersectionType).types : emptyArray;
const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);
const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);
- if (intrinsicAttributes === errorType || intrinsicClassAttributes === errorType ||
- (!contains(targetTypes, intrinsicAttributes) && !contains(targetTypes, intrinsicClassAttributes))) {
+ if ((intrinsicAttributes === errorType || !contains(targetTypes, intrinsicAttributes)) &&
+ (intrinsicClassAttributes === errorType || !contains(targetTypes, intrinsicClassAttributes))) {
// only report an error when the target isn't the intersection type with Intrinsic[Class]Attributes
- const componentName = errorNode && isIdentifier(errorNode) ? unescapeLeadingUnderscores(errorNode.escapedText) : "the component";
- reportError(Diagnostics.The_attributes_provided_to_0_are_not_assignable_to_type_1, componentName, typeToString(target));
+ Debug.assert(!!errorNode && isEntityNameExpression(errorNode));
+ reportError(Diagnostics.The_attributes_provided_to_0_are_not_assignable_to_type_1, entityNameToString(errorNode! as EntityNameExpression), typeToString(target));
}
return result;
}
diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json
index fcedd1ea2d211..e9e3491b6e1ad 100644
--- a/src/compiler/diagnosticMessages.json
+++ b/src/compiler/diagnosticMessages.json
@@ -2068,7 +2068,7 @@
"category": "Error",
"code": 2609
},
- "The attributes provided to {0} are not assignable to type '{1}'": {
+ "The attributes provided to '{0}' are not assignable to type '{1}'": {
"category": "Error",
"code": 2610
},
diff --git a/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
index c241d6e8ea5ee..610343e423d42 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(42,11): error TS2610: The attributes provided to SingleChildComp are not assignable to type 'SingleChildProp'
+tests/cases/conformance/jsx/file.tsx(42,11): error TS2610: The attributes provided to 'SingleChildComp' are not assignable to type 'SingleChildProp'
Types of property 'children' are incompatible.
Type 'Element[]' is not assignable to type 'Element'.
Property 'type' is missing in type 'Element[]'.
@@ -48,7 +48,7 @@ tests/cases/conformance/jsx/file.tsx(42,11): error TS2610: The attributes provid
// Error
let k5 = <>>;
~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to SingleChildComp are not assignable to type 'SingleChildProp'
+!!! error TS2610: The attributes provided to 'SingleChildComp' are not assignable to type 'SingleChildProp'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type 'Element[]' is not assignable to type 'Element'.
!!! error TS2610: Property 'type' is missing in type 'Element[]'.
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
index 13e2ced755e63..6239c260764cf 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
@@ -1,22 +1,22 @@
-tests/cases/conformance/jsx/file.tsx(14,10): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(14,10): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Property 'children' is missing in type '{ a: number; b: string; }'.
tests/cases/conformance/jsx/file.tsx(17,11): error TS2710: 'children' are specified twice. The attribute named 'children' will be overwritten.
-tests/cases/conformance/jsx/file.tsx(31,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(31,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
-tests/cases/conformance/jsx/file.tsx(37,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(37,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(number | Element)[]' is not assignable to type 'string | Element'.
Type '(number | Element)[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(number | Element)[]'.
-tests/cases/conformance/jsx/file.tsx(43,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(43,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'string | Element'.
Type '(string | Element)[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(string | Element)[]'.
-tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type 'Element[]' is not assignable to type 'string | Element'.
Type 'Element[]' is not assignable to type 'Element'.
@@ -39,7 +39,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
// Error: missing children
let k = ;
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Property 'children' is missing in type '{ a: number; b: string; }'.
let k0 =
@@ -61,7 +61,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k2 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
!!! error TS2610: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
@@ -73,7 +73,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k3 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type '(number | Element)[]' is not assignable to type 'string | Element'.
!!! error TS2610: Type '(number | Element)[]' is not assignable to type 'Element'.
@@ -85,7 +85,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k4 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'string | Element'.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element'.
@@ -97,7 +97,7 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k5 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type 'Element[]' is not assignable to type 'string | Element'.
!!! error TS2610: Type 'Element[]' is not assignable to type 'Element'.
diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
index c446f523bc0ec..2c7df750ee1e6 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
@@ -1,5 +1,5 @@
tests/cases/conformance/jsx/file.tsx(24,28): error TS2551: Property 'NAme' does not exist on type 'IUser'. Did you mean 'Name'?
-tests/cases/conformance/jsx/file.tsx(32,10): error TS2610: The attributes provided to FetchUser are not assignable to type 'IFetchUserProps'
+tests/cases/conformance/jsx/file.tsx(32,10): error TS2610: The attributes provided to 'FetchUser' are not assignable to type 'IFetchUserProps'
Types of property 'children' are incompatible.
Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
@@ -41,7 +41,7 @@ tests/cases/conformance/jsx/file.tsx(32,10): error TS2610: The attributes provid
return (
~~~~~~~~~
-!!! error TS2610: The attributes provided to FetchUser are not assignable to type 'IFetchUserProps'
+!!! error TS2610: The attributes provided to 'FetchUser' are not assignable to type 'IFetchUserProps'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
!!! error TS2610: Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
diff --git a/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
index ddf3e0ce1b331..9acba6bc44826 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
@@ -1,10 +1,10 @@
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Property 'children' is missing in type '{ a: number; b: string; }'.
-tests/cases/conformance/jsx/file.tsx(24,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(24,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type 'Element' is not assignable to type 'Button'.
Property 'render' is missing in type 'Element'.
-tests/cases/conformance/jsx/file.tsx(28,6): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(28,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type 'typeof Button' is not assignable to type 'Button'.
Property 'render' is missing in type 'typeof Button'.
@@ -32,14 +32,14 @@ tests/cases/conformance/jsx/file.tsx(28,6): error TS2610: The attributes provide
// Error: no children specified
let k = ;
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Property 'children' is missing in type '{ a: number; b: string; }'.
// Error: JSX.element is not the same as JSX.ElementClass
let k1 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type 'Element' is not assignable to type 'Button'.
!!! error TS2610: Property 'render' is missing in type 'Element'.
@@ -48,7 +48,7 @@ tests/cases/conformance/jsx/file.tsx(28,6): error TS2610: The attributes provide
let k2 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type 'typeof Button' is not assignable to type 'Button'.
!!! error TS2610: Property 'render' is missing in type 'typeof Button'.
diff --git a/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
index ae021c61eaf9e..f5240e56f4d58 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
@@ -1,14 +1,14 @@
-tests/cases/conformance/jsx/file.tsx(24,11): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(24,11): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
Type 'string | Element' is not assignable to type 'Element'.
Type 'string' is not assignable to type 'Element'.
-tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
-tests/cases/conformance/jsx/file.tsx(27,11): error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(27,11): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
@@ -40,7 +40,7 @@ tests/cases/conformance/jsx/file.tsx(27,11): error TS2610: The attributes provid
// Error: whitespaces matters
let k1 = ;
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
@@ -48,14 +48,14 @@ tests/cases/conformance/jsx/file.tsx(27,11): error TS2610: The attributes provid
!!! error TS2610: Type 'string' is not assignable to type 'Element'.
let k2 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
;
let k3 =
~~~~
-!!! error TS2610: The attributes provided to Comp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
index 8b722cf4ae9f5..0cf5833256d65 100644
--- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
+++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
@@ -1,6 +1,6 @@
-tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
+tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
-tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
+tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,36): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
@@ -37,11 +37,11 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): err
const b0 = {console.log(k)}}} extra />; // k has type "left" | "right"
~~~~~~~~~~
-!!! error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
+!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
!!! error TS2610: Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
const b2 = {console.log(k)}} extra />; // k has type "left" | "right"
~~~~~~~~~~
-!!! error TS2610: The attributes provided to MainButton are not assignable to type 'LinkProps'
+!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
!!! error TS2610: Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
const b3 = ; // goTo has type"home" | "contact"
~~~~~
diff --git a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
index 8e1a0ee983af4..9e4c283e2f95b 100644
--- a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
+++ b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/inline/index.tsx(5,1): error TS2322: Type 'import("t
Property '__predomBrand' is missing in type 'Element'.
tests/cases/conformance/jsx/inline/index.tsx(21,21): error TS2605: JSX element type 'Element' is not a constructor function for JSX elements.
Property 'render' is missing in type 'Element'.
-tests/cases/conformance/jsx/inline/index.tsx(21,22): error TS2610: The attributes provided to MySFC are not assignable to type '{ children?: Element[]; }'
+tests/cases/conformance/jsx/inline/index.tsx(21,22): error TS2610: The attributes provided to 'MySFC' are not assignable to type '{ children?: Element[]; }'
Types of property 'children' are incompatible.
Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
@@ -10,7 +10,7 @@ tests/cases/conformance/jsx/inline/index.tsx(21,40): error TS2605: JSX element t
tests/cases/conformance/jsx/inline/index.tsx(21,40): error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
Property '__domBrand' is missing in type 'MyClass'.
tests/cases/conformance/jsx/inline/index.tsx(21,63): error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
-tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attributes provided to DOMSFC are not assignable to type '{ x: number; y: number; children?: Element[]; }'
+tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attributes provided to 'DOMSFC' are not assignable to type '{ x: number; y: number; children?: Element[]; }'
Types of property 'children' are incompatible.
Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
@@ -106,7 +106,7 @@ tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attribute
!!! error TS2605: JSX element type 'Element' is not a constructor function for JSX elements.
!!! error TS2605: Property 'render' is missing in type 'Element'.
~~~~~
-!!! error TS2610: The attributes provided to MySFC are not assignable to type '{ children?: Element[]; }'
+!!! error TS2610: The attributes provided to 'MySFC' are not assignable to type '{ children?: Element[]; }'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
@@ -121,7 +121,7 @@ tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attribute
// Should fail, nondom isn't allowed as children of dom
const _brokenTree2 = {tree}{tree}
~~~~~~
-!!! error TS2610: The attributes provided to DOMSFC are not assignable to type '{ x: number; y: number; children?: Element[]; }'
+!!! error TS2610: The attributes provided to 'DOMSFC' are not assignable to type '{ x: number; y: number; children?: Element[]; }'
!!! error TS2610: Types of property 'children' are incompatible.
!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
diff --git a/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt b/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
index 7d1df9859943e..0ceda4031b6a9 100644
--- a/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
+++ b/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
@@ -1,21 +1,19 @@
tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(20,31): error TS2326: Types of property 'children' are incompatible.
Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: IntrinsicAttributes & LitProps<"x">) => "x"'.
Type '"y"' is not assignable to type '"x"'.
-tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(21,19): error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'
- The attributes provided to ElemLit are not assignable to type 'LitProps<"x" | "y">'
- Types of property 'children' are incompatible.
- Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
- Types of parameters 'p' and 'x' are incompatible.
- Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
- Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
- Types of property 'prop' are incompatible.
- Type '"x" | "y"' is not assignable to type '"x"'.
- Type '"y"' is not assignable to type '"x"'.
-tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x">'
- The attributes provided to ElemLit are not assignable to type 'LitProps<"x">'
- Types of property 'children' are incompatible.
- Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
- Type 'number' is not assignable to type '"x"'.
+tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(21,19): error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x" | "y">'
+ Types of property 'children' are incompatible.
+ Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
+ Types of parameters 'p' and 'x' are incompatible.
+ Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
+ Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
+ Types of property 'prop' are incompatible.
+ Type '"x" | "y"' is not assignable to type '"x"'.
+ Type '"y"' is not assignable to type '"x"'.
+tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x">'
+ Types of property 'children' are incompatible.
+ Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
+ Type 'number' is not assignable to type '"x"'.
==== tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx (3 errors) ====
@@ -45,20 +43,18 @@ tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2610:
!!! error TS2326: Type '"y"' is not assignable to type '"x"'.
const argchild = {p => "y"}
~~~~~~~
-!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'
-!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'LitProps<"x" | "y">'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
-!!! error TS2610: Types of parameters 'p' and 'x' are incompatible.
-!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
-!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
-!!! error TS2610: Types of property 'prop' are incompatible.
-!!! error TS2610: Type '"x" | "y"' is not assignable to type '"x"'.
-!!! error TS2610: Type '"y"' is not assignable to type '"x"'.
+!!! error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x" | "y">'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
+!!! error TS2610: Types of parameters 'p' and 'x' are incompatible.
+!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
+!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
+!!! error TS2610: Types of property 'prop' are incompatible.
+!!! error TS2610: Type '"x" | "y"' is not assignable to type '"x"'.
+!!! error TS2610: Type '"y"' is not assignable to type '"x"'.
const mismatched = {() => 12}
~~~~~~~
-!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'IntrinsicAttributes & LitProps<"x">'
-!!! error TS2610: The attributes provided to ElemLit are not assignable to type 'LitProps<"x">'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
-!!! error TS2610: Type 'number' is not assignable to type '"x"'.
\ No newline at end of file
+!!! error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x">'
+!!! error TS2610: Types of property 'children' are incompatible.
+!!! error TS2610: Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
+!!! error TS2610: Type 'number' is not assignable to type '"x"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeErrors.errors.txt b/tests/baselines/reference/tsxAttributeErrors.errors.txt
index 95843146eb19c..d13b06654ddbc 100644
--- a/tests/baselines/reference/tsxAttributeErrors.errors.txt
+++ b/tests/baselines/reference/tsxAttributeErrors.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/tsxAttributeErrors.tsx(14,6): error TS2326: Types of
Type 'number' is not assignable to type 'string'.
tests/cases/conformance/jsx/tsxAttributeErrors.tsx(17,6): error TS2326: Types of property 'width' are incompatible.
Type 'string' is not assignable to type 'number'.
-tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2610: The attributes provided to div are not assignable to type '{ text?: string; width?: number; }'
+tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2610: The attributes provided to 'div' are not assignable to type '{ text?: string; width?: number; }'
Types of property 'text' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -36,7 +36,7 @@ tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2610: The attr
var attribs = { text: 100 };
;
~~~
-!!! error TS2610: The attributes provided to div are not assignable to type '{ text?: string; width?: number; }'
+!!! error TS2610: The attributes provided to 'div' are not assignable to type '{ text?: string; width?: number; }'
!!! error TS2610: Types of property 'text' are incompatible.
!!! error TS2610: Type 'number' is not assignable to type 'string'.
diff --git a/tests/baselines/reference/tsxAttributeResolution1.errors.txt b/tests/baselines/reference/tsxAttributeResolution1.errors.txt
index 01e42f814628e..f94af7947cc01 100644
--- a/tests/baselines/reference/tsxAttributeResolution1.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution1.errors.txt
@@ -5,7 +5,7 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2559: Type '{ y: string; }'
tests/cases/conformance/jsx/file.tsx(26,8): error TS2326: Types of property 'x' are incompatible.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/jsx/file.tsx(27,2): error TS2559: Type '{ var: string; }' has no properties in common with type 'Attribs1'.
-tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to test2 are not assignable to type '{ reqd: string; }'
+tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to 'test2' are not assignable to type '{ reqd: string; }'
Property 'reqd' is missing in type '{}'.
tests/cases/conformance/jsx/file.tsx(30,8): error TS2326: Types of property 'reqd' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -54,7 +54,7 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2326: Types of property 'req
; // Error, missing reqd
~~~~~
-!!! error TS2610: The attributes provided to test2 are not assignable to type '{ reqd: string; }'
+!!! error TS2610: The attributes provided to 'test2' are not assignable to type '{ reqd: string; }'
!!! error TS2610: Property 'reqd' is missing in type '{}'.
; // Error, reqd is not string
~~~~~~~~~
diff --git a/tests/baselines/reference/tsxAttributeResolution12.errors.txt b/tests/baselines/reference/tsxAttributeResolution12.errors.txt
index 9cb2a3f124188..1620c9013fc1f 100644
--- a/tests/baselines/reference/tsxAttributeResolution12.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution12.errors.txt
@@ -1,9 +1,7 @@
-tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to T are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
- The attributes provided to T are not assignable to type '{ reqd: any; }'
- Property 'reqd' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(28,11): error TS2610: The attributes provided to the component are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
- The attributes provided to the component are not assignable to type '{ reqd: any; }'
- Property 'reqd' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to 'T' are not assignable to type '{ reqd: any; }'
+ Property 'reqd' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(28,11): error TS2610: The attributes provided to 'TestMod.Test' are not assignable to type '{ reqd: any; }'
+ Property 'reqd' is missing in type '{}'.
==== tests/cases/conformance/jsx/react.d.ts (0 errors) ====
@@ -46,15 +44,13 @@ tests/cases/conformance/jsx/file.tsx(28,11): error TS2610: The attributes provid
const T = TestMod.Test;
var t1 = ;
~
-!!! error TS2610: The attributes provided to T are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
-!!! error TS2610: The attributes provided to T are not assignable to type '{ reqd: any; }'
-!!! error TS2610: Property 'reqd' is missing in type '{}'.
+!!! error TS2610: The attributes provided to 'T' are not assignable to type '{ reqd: any; }'
+!!! error TS2610: Property 'reqd' is missing in type '{}'.
// Should error
var t2 = ;
~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to the component are not assignable to type 'IntrinsicAttributes & { reqd: any; }'
-!!! error TS2610: The attributes provided to the component are not assignable to type '{ reqd: any; }'
-!!! error TS2610: Property 'reqd' is missing in type '{}'.
+!!! error TS2610: The attributes provided to 'TestMod.Test' are not assignable to type '{ reqd: any; }'
+!!! error TS2610: Property 'reqd' is missing in type '{}'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeResolution3.errors.txt b/tests/baselines/reference/tsxAttributeResolution3.errors.txt
index 7f2f8570f38d7..70bee1f914981 100644
--- a/tests/baselines/reference/tsxAttributeResolution3.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution3.errors.txt
@@ -1,7 +1,7 @@
-tests/cases/conformance/jsx/file.tsx(19,2): error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+tests/cases/conformance/jsx/file.tsx(19,2): error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
-tests/cases/conformance/jsx/file.tsx(23,2): error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+tests/cases/conformance/jsx/file.tsx(23,2): error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
Property 'x' is missing in type '{ y: number; }'.
tests/cases/conformance/jsx/file.tsx(31,8): error TS2326: Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -28,7 +28,7 @@ tests/cases/conformance/jsx/file.tsx(31,8): error TS2326: Types of property 'x'
var obj2 = { x: 32 };
~~~~~
-!!! error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+!!! error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
!!! error TS2610: Types of property 'x' are incompatible.
!!! error TS2610: Type 'number' is not assignable to type 'string'.
@@ -36,7 +36,7 @@ tests/cases/conformance/jsx/file.tsx(31,8): error TS2326: Types of property 'x'
var obj3 = { y: 32 };
~~~~~
-!!! error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+!!! error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
!!! error TS2610: Property 'x' is missing in type '{ y: number; }'.
// OK
diff --git a/tests/baselines/reference/tsxAttributeResolution5.errors.txt b/tests/baselines/reference/tsxAttributeResolution5.errors.txt
index c00dd5b7c4016..76745dc16d857 100644
--- a/tests/baselines/reference/tsxAttributeResolution5.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution5.errors.txt
@@ -5,7 +5,7 @@ tests/cases/conformance/jsx/file.tsx(21,10): error TS2322: Type 'T' is not assig
tests/cases/conformance/jsx/file.tsx(25,10): error TS2322: Type 'T' is not assignable to type 'Attribs1'.
Type '{ y: string; }' is not assignable to type 'Attribs1'.
Property 'x' is missing in type '{ y: string; }'.
-tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
Property 'x' is missing in type '{}'.
@@ -49,7 +49,7 @@ tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provide
; // Error, missing x
~~~~~
-!!! error TS2610: The attributes provided to test1 are not assignable to type 'Attribs1'
+!!! error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
!!! error TS2610: Property 'x' is missing in type '{}'.
; // Error, missing toString
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeResolution6.errors.txt b/tests/baselines/reference/tsxAttributeResolution6.errors.txt
index 8edde3bcc4932..2ba22cf607d97 100644
--- a/tests/baselines/reference/tsxAttributeResolution6.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution6.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/file.tsx(10,8): error TS2326: Types of property 's'
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(11,8): error TS2326: Types of property 'n' are incompatible.
Type 'string' is not assignable to type 'boolean'.
-tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to test2 are not assignable to type '{ n: boolean; }'
+tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to 'test2' are not assignable to type '{ n: boolean; }'
Property 'n' is missing in type '{}'.
@@ -26,7 +26,7 @@ tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provide
!!! error TS2326: Type 'string' is not assignable to type 'boolean'.
;
~~~~~
-!!! error TS2610: The attributes provided to test2 are not assignable to type '{ n: boolean; }'
+!!! error TS2610: The attributes provided to 'test2' are not assignable to type '{ n: boolean; }'
!!! error TS2610: Property 'n' is missing in type '{}'.
// OK
diff --git a/tests/baselines/reference/tsxElementResolution3.errors.txt b/tests/baselines/reference/tsxElementResolution3.errors.txt
index aadad2273a73c..06def8d264a71 100644
--- a/tests/baselines/reference/tsxElementResolution3.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution3.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to span are not assignable to type '{ n: string; }'
+tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to 'span' are not assignable to type '{ n: string; }'
Property 'n' is missing in type '{ w: string; }'.
@@ -16,5 +16,5 @@ tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provide
// Error
;
~~~~
-!!! error TS2610: The attributes provided to span are not assignable to type '{ n: string; }'
+!!! error TS2610: The attributes provided to 'span' are not assignable to type '{ n: string; }'
!!! error TS2610: Property 'n' is missing in type '{ w: string; }'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxElementResolution4.errors.txt b/tests/baselines/reference/tsxElementResolution4.errors.txt
index 6025e84cff077..3959d394db1f9 100644
--- a/tests/baselines/reference/tsxElementResolution4.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution4.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(16,2): error TS2610: The attributes provided to span are not assignable to type '{ m: string; }'
+tests/cases/conformance/jsx/file.tsx(16,2): error TS2610: The attributes provided to 'span' are not assignable to type '{ m: string; }'
Property 'm' is missing in type '{ q: string; }'.
@@ -20,6 +20,6 @@ tests/cases/conformance/jsx/file.tsx(16,2): error TS2610: The attributes provide
// Error
;
~~~~
-!!! error TS2610: The attributes provided to span are not assignable to type '{ m: string; }'
+!!! error TS2610: The attributes provided to 'span' are not assignable to type '{ m: string; }'
!!! error TS2610: Property 'm' is missing in type '{ q: string; }'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxElementResolution9.errors.txt b/tests/baselines/reference/tsxElementResolution9.errors.txt
index 11d8fc5377656..42ace561ab7e9 100644
--- a/tests/baselines/reference/tsxElementResolution9.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution9.errors.txt
@@ -1,8 +1,8 @@
-tests/cases/conformance/jsx/file.tsx(11,2): error TS2610: The attributes provided to Obj1 are not assignable to type 'string | number'
+tests/cases/conformance/jsx/file.tsx(11,2): error TS2610: The attributes provided to 'Obj1' are not assignable to type 'string | number'
Type '{}' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(18,2): error TS2610: The attributes provided to Obj2 are not assignable to type 'string | number'
+tests/cases/conformance/jsx/file.tsx(18,2): error TS2610: The attributes provided to 'Obj2' are not assignable to type 'string | number'
Type '{}' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provided to Obj3 are not assignable to type 'string | number'
+tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provided to 'Obj3' are not assignable to type 'string | number'
Type '{ x: number; }' is not assignable to type 'number'.
@@ -19,7 +19,7 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provide
var Obj1: Obj1;
; // Error, return type is not an object type
~~~~
-!!! error TS2610: The attributes provided to Obj1 are not assignable to type 'string | number'
+!!! error TS2610: The attributes provided to 'Obj1' are not assignable to type 'string | number'
!!! error TS2610: Type '{}' is not assignable to type 'number'.
interface Obj2 {
@@ -29,7 +29,7 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provide
var Obj2: Obj2;
; // Error, return type is not an object type
~~~~
-!!! error TS2610: The attributes provided to Obj2 are not assignable to type 'string | number'
+!!! error TS2610: The attributes provided to 'Obj2' are not assignable to type 'string | number'
!!! error TS2610: Type '{}' is not assignable to type 'number'.
interface Obj3 {
@@ -39,6 +39,6 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provide
var Obj3: Obj3;
; // OK
~~~~
-!!! error TS2610: The attributes provided to Obj3 are not assignable to type 'string | number'
+!!! error TS2610: The attributes provided to 'Obj3' are not assignable to type 'string | number'
!!! error TS2610: Type '{ x: number; }' is not assignable to type 'number'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt b/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
index 61af91e34a8cd..7437a9a6e62d2 100644
--- a/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
+++ b/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2610: The attributes provided to E are not assignable to type 'IntrinsicAttributes'
+tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2610: The attributes provided to 'E' are not assignable to type 'IntrinsicAttributes'
Property 'key' is missing in type '{ x: number; }'.
@@ -33,6 +33,6 @@ tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2610:
var E: I;
~
-!!! error TS2610: The attributes provided to E are not assignable to type 'IntrinsicAttributes'
+!!! error TS2610: The attributes provided to 'E' are not assignable to type 'IntrinsicAttributes'
!!! error TS2610: Property 'key' is missing in type '{ x: number; }'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt b/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
index e711e91a46c89..b2a3cf73e4700 100644
--- a/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
+++ b/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(13,11): error TS2610: The attributes provided to MyComp are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(13,11): error TS2610: The attributes provided to 'MyComp' are not assignable to type 'Prop'
Property 'a' is missing in type '{}'.
tests/cases/conformance/jsx/file.tsx(19,18): error TS2326: Types of property 'a' are incompatible.
Type 'string' is not assignable to type 'number'.
@@ -19,7 +19,7 @@ tests/cases/conformance/jsx/file.tsx(19,18): error TS2326: Types of property 'a'
// Error
let x1 =
~~~~~~
-!!! error TS2610: The attributes provided to MyComp are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'MyComp' are not assignable to type 'Prop'
!!! error TS2610: Property 'a' is missing in type '{}'.
// OK
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
index ab6debd5d6c76..1b8ed4f8738ea 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/file.tsx(27,33): error TS2326: Types of property 'y'
Type 'true' is not assignable to type 'false'.
tests/cases/conformance/jsx/file.tsx(28,50): error TS2326: Types of property 'x' are incompatible.
Type '3' is not assignable to type '2'.
-tests/cases/conformance/jsx/file.tsx(30,11): error TS2610: The attributes provided to OverWriteAttr are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(30,11): error TS2610: The attributes provided to 'OverWriteAttr' are not assignable to type 'Prop'
Types of property 'y' are incompatible.
Type 'true' is not assignable to type 'false'.
@@ -45,7 +45,7 @@ tests/cases/conformance/jsx/file.tsx(30,11): error TS2610: The attributes provid
let x2 =
let x3 =
~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to OverWriteAttr are not assignable to type 'Prop'
+!!! error TS2610: The attributes provided to 'OverWriteAttr' are not assignable to type 'Prop'
!!! error TS2610: Types of property 'y' are incompatible.
!!! error TS2610: Type 'true' is not assignable to type 'false'.
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
index becfbcbb7788b..83ebec3d93a06 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(11,10): error TS2610: The attributes provided to AnotherComponent are not assignable to type 'AnotherComponentProps'
+tests/cases/conformance/jsx/file.tsx(11,10): error TS2610: The attributes provided to 'AnotherComponent' are not assignable to type 'AnotherComponentProps'
Property 'AnotherProperty1' is missing in type '{ property1: string; property2: number; }'.
@@ -15,7 +15,7 @@ tests/cases/conformance/jsx/file.tsx(11,10): error TS2610: The attributes provid
// Error: missing property
~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to AnotherComponent are not assignable to type 'AnotherComponentProps'
+!!! error TS2610: The attributes provided to 'AnotherComponent' are not assignable to type 'AnotherComponentProps'
!!! error TS2610: Property 'AnotherProperty1' is missing in type '{ property1: string; property2: number; }'.
);
}
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
index 9df88251e61b6..69ff62a33d9c2 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
@@ -1,15 +1,15 @@
-tests/cases/conformance/jsx/file.tsx(17,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(17,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
Property 'x' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(18,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(18,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
Property 'x' is missing in type '{}'.
tests/cases/conformance/jsx/file.tsx(19,19): error TS2326: Types of property 'x' are incompatible.
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(19,21): error TS2326: Types of property 'y' are incompatible.
Type 'true' is not assignable to type '"2"'.
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
-tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -33,11 +33,11 @@ tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provid
// Error
let p = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
!!! error TS2610: Property 'x' is missing in type '{}'.
let y = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
!!! error TS2610: Property 'x' is missing in type '{}'.
let z = ;
~
@@ -48,11 +48,11 @@ tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provid
!!! error TS2326: Type 'true' is not assignable to type '"2"'.
let w = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
!!! error TS2610: Types of property 'x' are incompatible.
!!! error TS2610: Type 'number' is not assignable to type 'string'.
let w1 = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
!!! error TS2610: Types of property 'x' are incompatible.
!!! error TS2610: Type 'number' is not assignable to type 'string'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
index ef5415259f699..afbfb2ed8d377 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
Types of property 'y' are incompatible.
Type 'number' is not assignable to type '2'.
tests/cases/conformance/jsx/file.tsx(33,10): error TS2559: Type '{ prop1: boolean; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'.
@@ -26,7 +26,7 @@ tests/cases/conformance/jsx/file.tsx(33,10): error TS2559: Type '{ prop1: boolea
// Error as "obj" has type { x: string; y: number }
let p = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to Poisoned are not assignable to type 'PoisonedProp'
+!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
!!! error TS2610: Types of property 'y' are incompatible.
!!! error TS2610: Type 'number' is not assignable to type '2'.
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
index 5b2d662bc2425..2c111f360008b 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/file.tsx(13,10): error TS2610: The attributes provided to TextComponent are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
- The attributes provided to TextComponent are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
+tests/cases/conformance/jsx/file.tsx(13,10): error TS2610: The attributes provided to 'TextComponent' are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
+ The attributes provided to 'TextComponent' are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
Property 'onEdit' is missing in type '{ editable: true; }'.
@@ -18,8 +18,8 @@ tests/cases/conformance/jsx/file.tsx(13,10): error TS2610: The attributes provid
// Error
let x =
~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to TextComponent are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
-!!! error TS2610: The attributes provided to TextComponent are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
+!!! error TS2610: The attributes provided to 'TextComponent' are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
+!!! error TS2610: The attributes provided to 'TextComponent' are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
!!! error TS2610: Property 'onEdit' is missing in type '{ editable: true; }'.
const textProps: TextProps = {
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
index b0ceb1c69b31e..4b740b674ac73 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
@@ -1,14 +1,14 @@
-tests/cases/conformance/jsx/file.tsx(12,13): error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+tests/cases/conformance/jsx/file.tsx(12,13): error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
Property 'yy' is missing in type '{ extraProp: true; }'.
-tests/cases/conformance/jsx/file.tsx(13,13): error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+tests/cases/conformance/jsx/file.tsx(13,13): error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
Property 'yy1' is missing in type '{ yy: number; }'.
tests/cases/conformance/jsx/file.tsx(14,31): error TS2326: Types of property 'yy1' are incompatible.
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(16,31): error TS2339: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
-tests/cases/conformance/jsx/file.tsx(17,13): error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+tests/cases/conformance/jsx/file.tsx(17,13): error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
Types of property 'yy' are incompatible.
Type 'boolean' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(25,13): error TS2610: The attributes provided to TestingOneThing are not assignable to type '{ yy: string; direction?: number; }'
+tests/cases/conformance/jsx/file.tsx(25,13): error TS2610: The attributes provided to 'TestingOneThing' are not assignable to type '{ yy: string; direction?: number; }'
Property 'yy' is missing in type '{ extra-data: true; }'.
tests/cases/conformance/jsx/file.tsx(26,40): error TS2326: Types of property 'direction' are incompatible.
Type 'string' is not assignable to type 'number'.
@@ -36,11 +36,11 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
// Error
const c0 = ; // extra property;
~~~~~~~~
-!!! error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+!!! error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
!!! error TS2610: Property 'yy' is missing in type '{ extraProp: true; }'.
const c1 = ; // missing property;
~~~~~~~~
-!!! error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+!!! error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
!!! error TS2610: Property 'yy1' is missing in type '{ yy: number; }'.
const c2 = ; // type incompatible;
~~~
@@ -52,7 +52,7 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
!!! error TS2339: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
const c5 = ; // type incompatible;
~~~~~~~~
-!!! error TS2610: The attributes provided to OneThing are not assignable to type '{ yy: number; yy1: string; }'
+!!! error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
!!! error TS2610: Types of property 'yy' are incompatible.
!!! error TS2610: Type 'boolean' is not assignable to type 'number'.
const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not
@@ -64,7 +64,7 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
// Error
const d1 =
~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to TestingOneThing are not assignable to type '{ yy: string; direction?: number; }'
+!!! error TS2610: The attributes provided to 'TestingOneThing' are not assignable to type '{ yy: string; direction?: number; }'
!!! error TS2610: Property 'yy' is missing in type '{ extra-data: true; }'.
const d2 =
~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
index e517847e6ed75..b972d38a525bf 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
@@ -1,12 +1,12 @@
-tests/cases/conformance/jsx/file.tsx(48,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+tests/cases/conformance/jsx/file.tsx(48,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }'.
-tests/cases/conformance/jsx/file.tsx(49,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+tests/cases/conformance/jsx/file.tsx(49,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: any) => void; }'.
-tests/cases/conformance/jsx/file.tsx(50,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+tests/cases/conformance/jsx/file.tsx(50,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ onClick: () => void; to: string; }'.
-tests/cases/conformance/jsx/file.tsx(51,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+tests/cases/conformance/jsx/file.tsx(51,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ onClick: (k: MouseEvent) => void; to: string; }'.
-tests/cases/conformance/jsx/file.tsx(53,13): error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+tests/cases/conformance/jsx/file.tsx(53,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
Property '"data-format"' is missing in type '{ to: string; onClick(e: any): void; }'.
tests/cases/conformance/jsx/file.tsx(54,51): error TS2326: Types of property 'children' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -66,24 +66,24 @@ tests/cases/conformance/jsx/file.tsx(56,24): error TS2326: Types of property 'da
// Error
const b0 = {}}>GO; // extra property;
~~~~~~~~~~
-!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
!!! error TS2610: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }'.
const b1 = {}} {...obj0}>Hello world; // extra property;
~~~~~~~~~~
-!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
!!! error TS2610: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: any) => void; }'.
const b2 = ; // extra property
~~~~~~~~~~
-!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
!!! error TS2610: Property '"data-format"' is missing in type '{ onClick: () => void; to: string; }'.
const b3 = {}}} />; // extra property
~~~~~~~~~~
-!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
!!! error TS2610: Property '"data-format"' is missing in type '{ onClick: (k: MouseEvent) => void; to: string; }'.
const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed
const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes
~~~~~~~~~~
-!!! error TS2610: The attributes provided to MainButton are not assignable to type 'HyphenProps'
+!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
!!! error TS2610: Property '"data-format"' is missing in type '{ to: string; onClick(e: any): void; }'.
const b6 = ; // incorrect type for optional attribute
~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
index 32ebe3fe9a22a..0224fd95f70c5 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
@@ -1,9 +1,9 @@
-tests/cases/conformance/jsx/file.tsx(19,10): error TS2610: The attributes provided to Greet are not assignable to type '{ name: string; }'
+tests/cases/conformance/jsx/file.tsx(19,10): error TS2610: The attributes provided to 'Greet' are not assignable to type '{ name: string; }'
Property 'name' is missing in type '{ naaame: string; }'.
tests/cases/conformance/jsx/file.tsx(27,15): error TS2326: Types of property 'name' are incompatible.
Type 'number' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(29,10): error TS2559: Type '{ naaaaaaame: string; }' has no properties in common with type 'IntrinsicAttributes & { name?: string; }'.
-tests/cases/conformance/jsx/file.tsx(34,10): error TS2610: The attributes provided to MeetAndGreet are not assignable to type '{ "prop-name": string; }'
+tests/cases/conformance/jsx/file.tsx(34,10): error TS2610: The attributes provided to 'MeetAndGreet' are not assignable to type '{ "prop-name": string; }'
Property '"prop-name"' is missing in type '{ extra-prop-name: string; }'.
tests/cases/conformance/jsx/file.tsx(37,10): error TS2559: Type '{ prop1: true; }' has no properties in common with type 'IntrinsicAttributes'.
tests/cases/conformance/jsx/file.tsx(38,11): error TS2559: Type '{ ref: (x: any) => any; }' has no properties in common with type 'IntrinsicAttributes'.
@@ -32,7 +32,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea
// Error
let b = ;
~~~~~
-!!! error TS2610: The attributes provided to Greet are not assignable to type '{ name: string; }'
+!!! error TS2610: The attributes provided to 'Greet' are not assignable to type '{ name: string; }'
!!! error TS2610: Property 'name' is missing in type '{ naaame: string; }'.
// OK
@@ -55,7 +55,7 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea
// Error
let h = ;
~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to MeetAndGreet are not assignable to type '{ "prop-name": string; }'
+!!! error TS2610: The attributes provided to 'MeetAndGreet' are not assignable to type '{ "prop-name": string; }'
!!! error TS2610: Property '"prop-name"' is missing in type '{ extra-prop-name: string; }'.
// Error
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
index fe313effb2b10..1c94f28113dfc 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(9,15): error TS2610: The attributes provided to OverloadComponent are not assignable to type '{ b: {}; a: number; }'
+tests/cases/conformance/jsx/file.tsx(9,15): error TS2610: The attributes provided to 'OverloadComponent' are not assignable to type '{ b: {}; a: number; }'
Property 'b' is missing in type '{ a: number; }'.
tests/cases/conformance/jsx/file.tsx(10,15): error TS2322: Type 'T & { ignore-prop: true; }' is not assignable to type 'IntrinsicAttributes & { b: {}; a: {}; }'.
Type 'T & { ignore-prop: true; }' is not assignable to type '{ b: {}; a: {}; }'.
@@ -16,7 +16,7 @@ tests/cases/conformance/jsx/file.tsx(10,15): error TS2322: Type 'T & { ignore-pr
function Baz(arg1: T, arg2: U) {
let a0 =
~~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to OverloadComponent are not assignable to type '{ b: {}; a: number; }'
+!!! error TS2610: The attributes provided to 'OverloadComponent' are not assignable to type '{ b: {}; a: number; }'
!!! error TS2610: Property 'b' is missing in type '{ a: number; }'.
let a2 = // missing a
~~~~~~~~~~~~~~~~~
diff --git a/tests/baselines/reference/tsxUnionElementType6.errors.txt b/tests/baselines/reference/tsxUnionElementType6.errors.txt
index 64dbce38eeba7..d11f288226913 100644
--- a/tests/baselines/reference/tsxUnionElementType6.errors.txt
+++ b/tests/baselines/reference/tsxUnionElementType6.errors.txt
@@ -1,9 +1,9 @@
tests/cases/conformance/jsx/file.tsx(18,10): error TS2559: Type '{ x: true; }' has no properties in common with type 'IntrinsicAttributes'.
tests/cases/conformance/jsx/file.tsx(19,27): error TS2326: Types of property 'x' are incompatible.
Type 'string' is not assignable to type 'boolean'.
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
Property 'x' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(21,10): error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
+tests/cases/conformance/jsx/file.tsx(21,10): error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
Property 'x' is missing in type '{ data-prop: true; }'.
@@ -34,11 +34,11 @@ tests/cases/conformance/jsx/file.tsx(21,10): error TS2610: The attributes provid
!!! error TS2326: Type 'string' is not assignable to type 'boolean'.
let c = ;
~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
+!!! error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
!!! error TS2610: Property 'x' is missing in type '{}'.
let d = ;
~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to SFC2AndEmptyComp are not assignable to type '{ x: boolean; }'
+!!! error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
!!! error TS2610: Property 'x' is missing in type '{ data-prop: true; }'.
\ No newline at end of file
From b0d228d7a5510512d815dde0d6f613f5fc8eaa45 Mon Sep 17 00:00:00 2001
From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Date: Thu, 14 Jun 2018 09:18:02 -0700
Subject: [PATCH 3/3] Simplify elaboration instead of head message
---
src/compiler/checker.ts | 19 +-
src/parser/diagnosticMessages.json | 2 +-
.../reference/APISample_Watch.errors.txt | 256 +++++++++---------
.../APISample_WatchWithDefaults.errors.txt | 256 +++++++++---------
...APISample_WatchWithOwnWatchHost.errors.txt | 256 +++++++++---------
.../reference/APISample_compile.errors.txt | 256 +++++++++---------
.../reference/APISample_jsdoc.errors.txt | 256 +++++++++---------
.../reference/APISample_linter.errors.txt | 256 +++++++++---------
.../APISample_parseConfig.errors.txt | 256 +++++++++---------
.../reference/APISample_transform.errors.txt | 256 +++++++++---------
.../reference/APISample_watcher.errors.txt | 256 +++++++++---------
.../reference/api/tsserverlibrary.d.ts | 1 +
tests/baselines/reference/api/typescript.d.ts | 1 +
.../checkJsxChildrenProperty14.errors.txt | 10 +-
.../checkJsxChildrenProperty2.errors.txt | 56 ++--
.../checkJsxChildrenProperty4.errors.txt | 10 +-
.../checkJsxChildrenProperty5.errors.txt | 28 +-
.../checkJsxChildrenProperty7.errors.txt | 34 +--
...StringLiteralsInJsxAttributes02.errors.txt | 16 +-
...sxFactoryDeclarationsLocalTypes.errors.txt | 22 +-
...xChildrenGenericContextualTypes.errors.txt | 56 ++--
.../reference/tsxAttributeErrors.errors.txt | 8 +-
.../tsxAttributeResolution1.errors.txt | 8 +-
.../tsxAttributeResolution12.errors.txt | 20 +-
.../tsxAttributeResolution3.errors.txt | 16 +-
.../tsxAttributeResolution5.errors.txt | 8 +-
.../tsxAttributeResolution6.errors.txt | 8 +-
.../tsxElementResolution3.errors.txt | 8 +-
.../tsxElementResolution4.errors.txt | 8 +-
.../tsxElementResolution9.errors.txt | 18 +-
.../tsxIntrinsicAttributeErrors.errors.txt | 8 +-
...ponentWithDefaultTypeParameter3.errors.txt | 8 +-
...tsxSpreadAttributesResolution12.errors.txt | 8 +-
...tsxSpreadAttributesResolution16.errors.txt | 8 +-
.../tsxSpreadAttributesResolution2.errors.txt | 32 +--
.../tsxSpreadAttributesResolution5.errors.txt | 8 +-
.../tsxSpreadAttributesResolution6.errors.txt | 12 +-
...elessFunctionComponentOverload4.errors.txt | 32 +--
...elessFunctionComponentOverload5.errors.txt | 40 +--
...tsxStatelessFunctionComponents1.errors.txt | 16 +-
...ionComponentsWithTypeArguments4.errors.txt | 8 +-
.../reference/tsxUnionElementType6.errors.txt | 16 +-
42 files changed, 1435 insertions(+), 1422 deletions(-)
diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts
index 22d5464091ec4..8a3579295dd49 100644
--- a/src/compiler/checker.ts
+++ b/src/compiler/checker.ts
@@ -10710,17 +10710,15 @@ namespace ts {
else if (source.symbol && source.flags & TypeFlags.Object && globalObjectType === source) {
reportError(Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);
}
- else if (getObjectFlags(source) & ObjectFlags.JsxAttributes) {
- const targetTypes = target.flags & TypeFlags.Intersection ? (target as IntersectionType).types : emptyArray;
+ else if (getObjectFlags(source) & ObjectFlags.JsxAttributes && target.flags & TypeFlags.Intersection) {
+ const targetTypes = (target as IntersectionType).types;
const intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);
const intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);
- if ((intrinsicAttributes === errorType || !contains(targetTypes, intrinsicAttributes)) &&
- (intrinsicClassAttributes === errorType || !contains(targetTypes, intrinsicClassAttributes))) {
+ if (intrinsicAttributes !== errorType && intrinsicClassAttributes !== errorType &&
+ (contains(targetTypes, intrinsicAttributes) || contains(targetTypes, intrinsicClassAttributes))) {
// only report an error when the target isn't the intersection type with Intrinsic[Class]Attributes
- Debug.assert(!!errorNode && isEntityNameExpression(errorNode));
- reportError(Diagnostics.The_attributes_provided_to_0_are_not_assignable_to_type_1, entityNameToString(errorNode! as EntityNameExpression), typeToString(target));
+ return result;
}
- return result;
}
reportRelationError(headMessage, source, target);
}
@@ -11283,7 +11281,12 @@ namespace ts {
const unmatchedProperty = getUnmatchedProperty(source, target, requireOptionalProperties);
if (unmatchedProperty) {
if (reportErrors) {
- reportError(Diagnostics.Property_0_is_missing_in_type_1, symbolToString(unmatchedProperty), typeToString(source));
+ if (getObjectFlags(source) & ObjectFlags.JsxAttributes) {
+ reportError(Diagnostics.Property_0_is_missing_in_the_provided_JSX_attributes, symbolToString(unmatchedProperty));
+ }
+ else {
+ reportError(Diagnostics.Property_0_is_missing_in_type_1, symbolToString(unmatchedProperty), typeToString(source));
+ }
}
return Ternary.False;
}
diff --git a/src/parser/diagnosticMessages.json b/src/parser/diagnosticMessages.json
index f4e2f2d2e6cbc..577a1eb85d14b 100644
--- a/src/parser/diagnosticMessages.json
+++ b/src/parser/diagnosticMessages.json
@@ -2072,7 +2072,7 @@
"category": "Error",
"code": 2609
},
- "The attributes provided to '{0}' are not assignable to type '{1}'": {
+ "Property '{0}' is missing in the provided JSX attributes.": {
"category": "Error",
"code": 2610
},
diff --git a/tests/baselines/reference/APISample_Watch.errors.txt b/tests/baselines/reference/APISample_Watch.errors.txt
index d4f7638416bb1..a6f8d165b99e8 100644
--- a/tests/baselines/reference/APISample_Watch.errors.txt
+++ b/tests/baselines/reference/APISample_Watch.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_Watch.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt b/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt
index 52755e8fe214d..bf842c129bdca 100644
--- a/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt
+++ b/tests/baselines/reference/APISample_WatchWithDefaults.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_WatchWithDefaults.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt b/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt
index 1275cf337b057..71b8336c74b0e 100644
--- a/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt
+++ b/tests/baselines/reference/APISample_WatchWithOwnWatchHost.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_WatchWithOwnWatchHost.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_compile.errors.txt b/tests/baselines/reference/APISample_compile.errors.txt
index 4af4a173002b9..d15852c9e80f1 100644
--- a/tests/baselines/reference/APISample_compile.errors.txt
+++ b/tests/baselines/reference/APISample_compile.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_compile.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_jsdoc.errors.txt b/tests/baselines/reference/APISample_jsdoc.errors.txt
index b80bb027663cf..9a0517e05fb48 100644
--- a/tests/baselines/reference/APISample_jsdoc.errors.txt
+++ b/tests/baselines/reference/APISample_jsdoc.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_jsdoc.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_linter.errors.txt b/tests/baselines/reference/APISample_linter.errors.txt
index 51a0140cf047c..66b5a166353b8 100644
--- a/tests/baselines/reference/APISample_linter.errors.txt
+++ b/tests/baselines/reference/APISample_linter.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_linter.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_parseConfig.errors.txt b/tests/baselines/reference/APISample_parseConfig.errors.txt
index f2ccfacdc9f87..8451bd9104eca 100644
--- a/tests/baselines/reference/APISample_parseConfig.errors.txt
+++ b/tests/baselines/reference/APISample_parseConfig.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_parseConfig.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_transform.errors.txt b/tests/baselines/reference/APISample_transform.errors.txt
index 1680cd615115b..397325b1b4ee9 100644
--- a/tests/baselines/reference/APISample_transform.errors.txt
+++ b/tests/baselines/reference/APISample_transform.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_transform.ts (0 errors) ====
diff --git a/tests/baselines/reference/APISample_watcher.errors.txt b/tests/baselines/reference/APISample_watcher.errors.txt
index 1041d8495bbcc..62d65a4285484 100644
--- a/tests/baselines/reference/APISample_watcher.errors.txt
+++ b/tests/baselines/reference/APISample_watcher.errors.txt
@@ -1,133 +1,133 @@
typescript_standalone.d.ts(21,28): error TS1005: ';' expected.
typescript_standalone.d.ts(21,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(8921,42): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9181,46): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9531,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9555,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(9642,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10807,57): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10818,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10828,48): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10903,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(10960,47): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11014,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11034,44): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11044,35): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11078,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11081,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11085,45): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11103,56): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11129,36): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11132,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11144,43): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11174,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11208,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11219,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11243,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11251,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11255,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11285,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11328,41): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11515,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11517,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11521,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11523,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11525,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11527,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11529,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11538,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11540,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11542,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11544,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11546,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11548,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11550,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11552,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11554,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11556,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11558,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11560,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11562,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11564,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11566,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11576,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11578,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11580,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11582,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11584,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11586,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11588,37): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11590,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11592,52): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11664,72): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11666,38): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11668,71): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11670,40): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,28): error TS1005: ';' expected.
-typescript_standalone.d.ts(11746,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(8922,42): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9182,46): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9532,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9556,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(9643,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10808,57): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10819,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10829,48): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10904,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(10961,47): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11015,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11035,44): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11045,35): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11079,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11082,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11086,45): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11104,56): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11130,36): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11133,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11145,43): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11175,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11209,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11220,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11244,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11252,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11256,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11286,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11329,41): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11516,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11518,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11522,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11524,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11526,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11528,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11530,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11539,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11541,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11543,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11545,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11547,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11549,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11551,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11553,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11555,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11557,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11559,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11561,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11563,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11565,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11567,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11577,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11579,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11581,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11583,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11585,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11587,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11589,37): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11591,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11593,52): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11665,72): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11667,38): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11669,71): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11671,40): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,28): error TS1005: ';' expected.
+typescript_standalone.d.ts(11747,48): error TS1005: ';' expected.
==== tests/cases/compiler/APISample_watcher.ts (0 errors) ====
diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts
index a4597e9997dcb..2ff96cf76023f 100644
--- a/tests/baselines/reference/api/tsserverlibrary.d.ts
+++ b/tests/baselines/reference/api/tsserverlibrary.d.ts
@@ -5324,6 +5324,7 @@ declare namespace ts {
JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property: DiagnosticMessage;
The_global_type_JSX_0_may_not_have_more_than_one_property: DiagnosticMessage;
JSX_spread_child_must_be_an_array_type: DiagnosticMessage;
+ Property_0_is_missing_in_the_provided_JSX_attributes: DiagnosticMessage;
Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: DiagnosticMessage;
A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: DiagnosticMessage;
Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: DiagnosticMessage;
diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts
index 872799f1b2500..c898b4651ea68 100644
--- a/tests/baselines/reference/api/typescript.d.ts
+++ b/tests/baselines/reference/api/typescript.d.ts
@@ -5324,6 +5324,7 @@ declare namespace ts {
JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property: DiagnosticMessage;
The_global_type_JSX_0_may_not_have_more_than_one_property: DiagnosticMessage;
JSX_spread_child_must_be_an_array_type: DiagnosticMessage;
+ Property_0_is_missing_in_the_provided_JSX_attributes: DiagnosticMessage;
Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: DiagnosticMessage;
A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: DiagnosticMessage;
Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: DiagnosticMessage;
diff --git a/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
index 610343e423d42..cf999188ebc59 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty14.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(42,11): error TS2610: The attributes provided to 'SingleChildComp' are not assignable to type 'SingleChildProp'
+tests/cases/conformance/jsx/file.tsx(42,11): error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'SingleChildProp'.
Types of property 'children' are incompatible.
Type 'Element[]' is not assignable to type 'Element'.
Property 'type' is missing in type 'Element[]'.
@@ -48,7 +48,7 @@ tests/cases/conformance/jsx/file.tsx(42,11): error TS2610: The attributes provid
// Error
let k5 = <>>;
~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'SingleChildComp' are not assignable to type 'SingleChildProp'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type 'Element[]' is not assignable to type 'Element'.
-!!! error TS2610: Property 'type' is missing in type 'Element[]'.
\ No newline at end of file
+!!! error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'SingleChildProp'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type 'Element[]' is not assignable to type 'Element'.
+!!! error TS2322: Property 'type' is missing in type 'Element[]'.
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
index 6239c260764cf..fa9165511f487 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty2.errors.txt
@@ -1,22 +1,22 @@
-tests/cases/conformance/jsx/file.tsx(14,10): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
- Property 'children' is missing in type '{ a: number; b: string; }'.
+tests/cases/conformance/jsx/file.tsx(14,10): error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
+ Property 'children' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(17,11): error TS2710: 'children' are specified twice. The attribute named 'children' will be overwritten.
-tests/cases/conformance/jsx/file.tsx(31,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(31,6): error TS2322: Type '{ children: (Element | ((name: string) => Element))[]; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
-tests/cases/conformance/jsx/file.tsx(37,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(37,6): error TS2322: Type '{ children: (number | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type '(number | Element)[]' is not assignable to type 'string | Element'.
Type '(number | Element)[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(number | Element)[]'.
-tests/cases/conformance/jsx/file.tsx(43,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(43,6): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'string | Element'.
Type '(string | Element)[]' is not assignable to type 'Element'.
Property 'type' is missing in type '(string | Element)[]'.
-tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(49,6): error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type 'Element[]' is not assignable to type 'string | Element'.
Type 'Element[]' is not assignable to type 'Element'.
@@ -39,8 +39,8 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
// Error: missing children
let k = ;
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Property 'children' is missing in type '{ a: number; b: string; }'.
+!!! error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Property 'children' is missing in the provided JSX attributes.
let k0 =
@@ -61,11 +61,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k2 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
-!!! error TS2610: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
-!!! error TS2610: Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
+!!! error TS2322: Type '{ children: (Element | ((name: string) => Element))[]; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'string | Element'.
+!!! error TS2322: Type '(Element | ((name: string) => Element))[]' is not assignable to type 'Element'.
+!!! error TS2322: Property 'type' is missing in type '(Element | ((name: string) => Element))[]'.
My Div
{(name: string) =>
My name {name}
}
;
@@ -73,11 +73,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k3 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(number | Element)[]' is not assignable to type 'string | Element'.
-!!! error TS2610: Type '(number | Element)[]' is not assignable to type 'Element'.
-!!! error TS2610: Property 'type' is missing in type '(number | Element)[]'.
+!!! error TS2322: Type '{ children: (number | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '(number | Element)[]' is not assignable to type 'string | Element'.
+!!! error TS2322: Type '(number | Element)[]' is not assignable to type 'Element'.
+!!! error TS2322: Property 'type' is missing in type '(number | Element)[]'.
My Div
{1000000}
;
@@ -85,11 +85,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k4 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'string | Element'.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element'.
-!!! error TS2610: Property 'type' is missing in type '(string | Element)[]'.
+!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'string | Element'.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element'.
+!!! error TS2322: Property 'type' is missing in type '(string | Element)[]'.
My Div
hi hi hi!
;
@@ -97,11 +97,11 @@ tests/cases/conformance/jsx/file.tsx(49,6): error TS2610: The attributes provide
let k5 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type 'Element[]' is not assignable to type 'string | Element'.
-!!! error TS2610: Type 'Element[]' is not assignable to type 'Element'.
-!!! error TS2610: Property 'type' is missing in type 'Element[]'.
+!!! error TS2322: Type '{ children: Element[]; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type 'Element[]' is not assignable to type 'string | Element'.
+!!! error TS2322: Type 'Element[]' is not assignable to type 'Element'.
+!!! error TS2322: Property 'type' is missing in type 'Element[]'.
My Div
My Div
;
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
index 2c7df750ee1e6..986df05ceb686 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty4.errors.txt
@@ -1,5 +1,5 @@
tests/cases/conformance/jsx/file.tsx(24,28): error TS2551: Property 'NAme' does not exist on type 'IUser'. Did you mean 'Name'?
-tests/cases/conformance/jsx/file.tsx(32,10): error TS2610: The attributes provided to 'FetchUser' are not assignable to type 'IFetchUserProps'
+tests/cases/conformance/jsx/file.tsx(32,10): error TS2322: Type '{ children: ((user: IUser) => Element)[]; }' is not assignable to type 'IFetchUserProps'.
Types of property 'children' are incompatible.
Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
@@ -41,10 +41,10 @@ tests/cases/conformance/jsx/file.tsx(32,10): error TS2610: The attributes provid
return (
~~~~~~~~~
-!!! error TS2610: The attributes provided to 'FetchUser' are not assignable to type 'IFetchUserProps'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
-!!! error TS2610: Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
+!!! error TS2322: Type '{ children: ((user: IUser) => Element)[]; }' is not assignable to type 'IFetchUserProps'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '((user: IUser) => Element)[]' is not assignable to type '(user: IUser) => Element'.
+!!! error TS2322: Type '((user: IUser) => Element)[]' provides no match for the signature '(user: IUser): Element'.
diff --git a/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
index 9acba6bc44826..c51e596898184 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty5.errors.txt
@@ -1,10 +1,10 @@
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
- Property 'children' is missing in type '{ a: number; b: string; }'.
-tests/cases/conformance/jsx/file.tsx(24,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
+ Property 'children' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(24,6): error TS2322: Type '{ children: Element; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type 'Element' is not assignable to type 'Button'.
Property 'render' is missing in type 'Element'.
-tests/cases/conformance/jsx/file.tsx(28,6): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(28,6): error TS2322: Type '{ children: typeof Button; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type 'typeof Button' is not assignable to type 'Button'.
Property 'render' is missing in type 'typeof Button'.
@@ -32,25 +32,25 @@ tests/cases/conformance/jsx/file.tsx(28,6): error TS2610: The attributes provide
// Error: no children specified
let k = ;
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Property 'children' is missing in type '{ a: number; b: string; }'.
+!!! error TS2322: Type '{ a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Property 'children' is missing in the provided JSX attributes.
// Error: JSX.element is not the same as JSX.ElementClass
let k1 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type 'Element' is not assignable to type 'Button'.
-!!! error TS2610: Property 'render' is missing in type 'Element'.
+!!! error TS2322: Type '{ children: Element; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type 'Element' is not assignable to type 'Button'.
+!!! error TS2322: Property 'render' is missing in type 'Element'.
;
let k2 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type 'typeof Button' is not assignable to type 'Button'.
-!!! error TS2610: Property 'render' is missing in type 'typeof Button'.
+!!! error TS2322: Type '{ children: typeof Button; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type 'typeof Button' is not assignable to type 'Button'.
+!!! error TS2322: Property 'render' is missing in type 'typeof Button'.
{Button}
;
\ No newline at end of file
diff --git a/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt b/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
index f5240e56f4d58..6a2325cb82701 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
+++ b/tests/baselines/reference/checkJsxChildrenProperty7.errors.txt
@@ -1,14 +1,14 @@
-tests/cases/conformance/jsx/file.tsx(24,11): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(24,11): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
Type 'string | Element' is not assignable to type 'Element'.
Type 'string' is not assignable to type 'Element'.
-tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(25,11): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
-tests/cases/conformance/jsx/file.tsx(27,11): error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(27,11): error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
Types of property 'children' are incompatible.
Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
Type '(string | Element)[]' is not assignable to type 'Element[]'.
@@ -40,23 +40,23 @@ tests/cases/conformance/jsx/file.tsx(27,11): error TS2610: The attributes provid
// Error: whitespaces matters
let k1 = ;
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
-!!! error TS2610: Type 'string | Element' is not assignable to type 'Element'.
-!!! error TS2610: Type 'string' is not assignable to type 'Element'.
+!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element[]'.
+!!! error TS2322: Type 'string | Element' is not assignable to type 'Element'.
+!!! error TS2322: Type 'string' is not assignable to type 'Element'.
let k2 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
+!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element[]'.
;
let k3 =
~~~~
-!!! error TS2610: The attributes provided to 'Comp' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
-!!! error TS2610: Type '(string | Element)[]' is not assignable to type 'Element[]'.
+!!! error TS2322: Type '{ children: (string | Element)[]; a: number; b: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element | Element[]'.
+!!! error TS2322: Type '(string | Element)[]' is not assignable to type 'Element[]'.
;
\ No newline at end of file
diff --git a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
index 0cf5833256d65..641ad71b1c950 100644
--- a/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
+++ b/tests/baselines/reference/contextuallyTypedStringLiteralsInJsxAttributes02.errors.txt
@@ -1,7 +1,7 @@
-tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
- Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
-tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
- Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
+tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(27,13): error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'LinkProps'.
+ Property 'goTo' is missing in the provided JSX attributes.
+tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(28,13): error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'LinkProps'.
+ Property 'goTo' is missing in the provided JSX attributes.
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(29,43): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(30,36): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(33,65): error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & ButtonProps'.
@@ -37,12 +37,12 @@ tests/cases/conformance/types/contextualTypes/jsxAttributes/file.tsx(36,44): err
const b0 = {console.log(k)}}} extra />; // k has type "left" | "right"
~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
-!!! error TS2610: Property 'goTo' is missing in type '{ extra: true; onClick: (k: "left" | "right") => void; }'.
+!!! error TS2322: Type '{ extra: true; onClick: (k: "left" | "right") => void; }' is not assignable to type 'LinkProps'.
+!!! error TS2322: Property 'goTo' is missing in the provided JSX attributes.
const b2 = {console.log(k)}} extra />; // k has type "left" | "right"
~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'LinkProps'
-!!! error TS2610: Property 'goTo' is missing in type '{ onClick: (k: "left" | "right") => void; extra: true; }'.
+!!! error TS2322: Type '{ onClick: (k: "left" | "right") => void; extra: true; }' is not assignable to type 'LinkProps'.
+!!! error TS2322: Property 'goTo' is missing in the provided JSX attributes.
const b3 = ; // goTo has type"home" | "contact"
~~~~~
!!! error TS2339: Property 'extra' does not exist on type 'IntrinsicAttributes & LinkProps'.
diff --git a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
index 9e4c283e2f95b..b4f6fcd9157b7 100644
--- a/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
+++ b/tests/baselines/reference/inlineJsxFactoryDeclarationsLocalTypes.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/inline/index.tsx(5,1): error TS2322: Type 'import("t
Property '__predomBrand' is missing in type 'Element'.
tests/cases/conformance/jsx/inline/index.tsx(21,21): error TS2605: JSX element type 'Element' is not a constructor function for JSX elements.
Property 'render' is missing in type 'Element'.
-tests/cases/conformance/jsx/inline/index.tsx(21,22): error TS2610: The attributes provided to 'MySFC' are not assignable to type '{ children?: Element[]; }'
+tests/cases/conformance/jsx/inline/index.tsx(21,22): error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ children?: Element[]; }'.
Types of property 'children' are incompatible.
Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
@@ -10,7 +10,7 @@ tests/cases/conformance/jsx/inline/index.tsx(21,40): error TS2605: JSX element t
tests/cases/conformance/jsx/inline/index.tsx(21,40): error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
Property '__domBrand' is missing in type 'MyClass'.
tests/cases/conformance/jsx/inline/index.tsx(21,63): error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
-tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attributes provided to 'DOMSFC' are not assignable to type '{ x: number; y: number; children?: Element[]; }'
+tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ x: number; y: number; children?: Element[]; }'.
Types of property 'children' are incompatible.
Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
@@ -106,10 +106,10 @@ tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attribute
!!! error TS2605: JSX element type 'Element' is not a constructor function for JSX elements.
!!! error TS2605: Property 'render' is missing in type 'Element'.
~~~~~
-!!! error TS2610: The attributes provided to 'MySFC' are not assignable to type '{ children?: Element[]; }'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
-!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
+!!! error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ children?: Element[]; }'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]'.
+!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element'.
~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS2605: JSX element type 'MyClass' is not a constructor function for JSX elements.
~~~~~~~~~~~~~~~~~~~~~~~
@@ -121,9 +121,9 @@ tests/cases/conformance/jsx/inline/index.tsx(24,23): error TS2610: The attribute
// Should fail, nondom isn't allowed as children of dom
const _brokenTree2 = {tree}{tree}
~~~~~~
-!!! error TS2610: The attributes provided to 'DOMSFC' are not assignable to type '{ x: number; y: number; children?: Element[]; }'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
-!!! error TS2610: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
-!!! error TS2610: Property '__domBrand' is missing in type 'Element'.
+!!! error TS2322: Type '{ children: Element[]; x: number; y: number; }' is not assignable to type '{ x: number; y: number; children?: Element[]; }'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element[]' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element[]'.
+!!! error TS2322: Type 'import("tests/cases/conformance/jsx/inline/renderer2").predom.JSX.Element' is not assignable to type 'import("tests/cases/conformance/jsx/inline/renderer").dom.JSX.Element'.
+!!! error TS2322: Property '__domBrand' is missing in type 'Element'.
\ No newline at end of file
diff --git a/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt b/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
index 0ceda4031b6a9..632264144dd36 100644
--- a/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
+++ b/tests/baselines/reference/jsxChildrenGenericContextualTypes.errors.txt
@@ -1,19 +1,21 @@
tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(20,31): error TS2326: Types of property 'children' are incompatible.
Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: IntrinsicAttributes & LitProps<"x">) => "x"'.
Type '"y"' is not assignable to type '"x"'.
-tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(21,19): error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x" | "y">'
- Types of property 'children' are incompatible.
- Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
- Types of parameters 'p' and 'x' are incompatible.
- Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
- Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
- Types of property 'prop' are incompatible.
- Type '"x" | "y"' is not assignable to type '"x"'.
- Type '"y"' is not assignable to type '"x"'.
-tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x">'
- Types of property 'children' are incompatible.
- Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
- Type 'number' is not assignable to type '"x"'.
+tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(21,19): error TS2322: Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'.
+ Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'LitProps<"x" | "y">'.
+ Types of property 'children' are incompatible.
+ Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
+ Types of parameters 'p' and 'x' are incompatible.
+ Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
+ Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
+ Types of property 'prop' are incompatible.
+ Type '"x" | "y"' is not assignable to type '"x"'.
+ Type '"y"' is not assignable to type '"x"'.
+tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2322: Type '{ children: () => number; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
+ Type '{ children: () => number; prop: "x"; }' is not assignable to type 'LitProps<"x">'.
+ Types of property 'children' are incompatible.
+ Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
+ Type 'number' is not assignable to type '"x"'.
==== tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx (3 errors) ====
@@ -43,18 +45,20 @@ tests/cases/compiler/jsxChildrenGenericContextualTypes.tsx(22,21): error TS2610:
!!! error TS2326: Type '"y"' is not assignable to type '"x"'.
const argchild = {p => "y"}
~~~~~~~
-!!! error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x" | "y">'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
-!!! error TS2610: Types of parameters 'p' and 'x' are incompatible.
-!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
-!!! error TS2610: Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
-!!! error TS2610: Types of property 'prop' are incompatible.
-!!! error TS2610: Type '"x" | "y"' is not assignable to type '"x"'.
-!!! error TS2610: Type '"y"' is not assignable to type '"x"'.
+!!! error TS2322: Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x" | "y">'.
+!!! error TS2322: Type '{ children: (p: IntrinsicAttributes & LitProps<"x">) => "y"; prop: "x"; }' is not assignable to type 'LitProps<"x" | "y">'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '(p: IntrinsicAttributes & LitProps<"x">) => "y"' is not assignable to type '(x: LitProps<"x" | "y">) => "x" | "y"'.
+!!! error TS2322: Types of parameters 'p' and 'x' are incompatible.
+!!! error TS2322: Type 'LitProps<"x" | "y">' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
+!!! error TS2322: Type 'LitProps<"x" | "y">' is not assignable to type 'LitProps<"x">'.
+!!! error TS2322: Types of property 'prop' are incompatible.
+!!! error TS2322: Type '"x" | "y"' is not assignable to type '"x"'.
+!!! error TS2322: Type '"y"' is not assignable to type '"x"'.
const mismatched = {() => 12}
~~~~~~~
-!!! error TS2610: The attributes provided to 'ElemLit' are not assignable to type 'LitProps<"x">'
-!!! error TS2610: Types of property 'children' are incompatible.
-!!! error TS2610: Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
-!!! error TS2610: Type 'number' is not assignable to type '"x"'.
\ No newline at end of file
+!!! error TS2322: Type '{ children: () => number; prop: "x"; }' is not assignable to type 'IntrinsicAttributes & LitProps<"x">'.
+!!! error TS2322: Type '{ children: () => number; prop: "x"; }' is not assignable to type 'LitProps<"x">'.
+!!! error TS2322: Types of property 'children' are incompatible.
+!!! error TS2322: Type '() => number' is not assignable to type '(x: LitProps<"x">) => "x"'.
+!!! error TS2322: Type 'number' is not assignable to type '"x"'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeErrors.errors.txt b/tests/baselines/reference/tsxAttributeErrors.errors.txt
index d13b06654ddbc..081f7b4fd6b98 100644
--- a/tests/baselines/reference/tsxAttributeErrors.errors.txt
+++ b/tests/baselines/reference/tsxAttributeErrors.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/tsxAttributeErrors.tsx(14,6): error TS2326: Types of
Type 'number' is not assignable to type 'string'.
tests/cases/conformance/jsx/tsxAttributeErrors.tsx(17,6): error TS2326: Types of property 'width' are incompatible.
Type 'string' is not assignable to type 'number'.
-tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2610: The attributes provided to 'div' are not assignable to type '{ text?: string; width?: number; }'
+tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2322: Type '{ text: number; }' is not assignable to type '{ text?: string; width?: number; }'.
Types of property 'text' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -36,9 +36,9 @@ tests/cases/conformance/jsx/tsxAttributeErrors.tsx(21,2): error TS2610: The attr
var attribs = { text: 100 };
;
~~~
-!!! error TS2610: The attributes provided to 'div' are not assignable to type '{ text?: string; width?: number; }'
-!!! error TS2610: Types of property 'text' are incompatible.
-!!! error TS2610: Type 'number' is not assignable to type 'string'.
+!!! error TS2322: Type '{ text: number; }' is not assignable to type '{ text?: string; width?: number; }'.
+!!! error TS2322: Types of property 'text' are incompatible.
+!!! error TS2322: Type 'number' is not assignable to type 'string'.
// No errors here
;
diff --git a/tests/baselines/reference/tsxAttributeResolution1.errors.txt b/tests/baselines/reference/tsxAttributeResolution1.errors.txt
index f94af7947cc01..10cf22e5db610 100644
--- a/tests/baselines/reference/tsxAttributeResolution1.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution1.errors.txt
@@ -5,8 +5,8 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2559: Type '{ y: string; }'
tests/cases/conformance/jsx/file.tsx(26,8): error TS2326: Types of property 'x' are incompatible.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/jsx/file.tsx(27,2): error TS2559: Type '{ var: string; }' has no properties in common with type 'Attribs1'.
-tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to 'test2' are not assignable to type '{ reqd: string; }'
- Property 'reqd' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(29,2): error TS2322: Type '{}' is not assignable to type '{ reqd: string; }'.
+ Property 'reqd' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(30,8): error TS2326: Types of property 'reqd' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -54,8 +54,8 @@ tests/cases/conformance/jsx/file.tsx(30,8): error TS2326: Types of property 'req
; // Error, missing reqd
~~~~~
-!!! error TS2610: The attributes provided to 'test2' are not assignable to type '{ reqd: string; }'
-!!! error TS2610: Property 'reqd' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type '{ reqd: string; }'.
+!!! error TS2322: Property 'reqd' is missing in the provided JSX attributes.
; // Error, reqd is not string
~~~~~~~~~
!!! error TS2326: Types of property 'reqd' are incompatible.
diff --git a/tests/baselines/reference/tsxAttributeResolution12.errors.txt b/tests/baselines/reference/tsxAttributeResolution12.errors.txt
index 1620c9013fc1f..27162d65858e9 100644
--- a/tests/baselines/reference/tsxAttributeResolution12.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution12.errors.txt
@@ -1,7 +1,9 @@
-tests/cases/conformance/jsx/file.tsx(25,11): error TS2610: The attributes provided to 'T' are not assignable to type '{ reqd: any; }'
- Property 'reqd' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(28,11): error TS2610: The attributes provided to 'TestMod.Test' are not assignable to type '{ reqd: any; }'
- Property 'reqd' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(25,11): error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
+ Type '{}' is not assignable to type '{ reqd: any; }'.
+ Property 'reqd' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(28,11): error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
+ Type '{}' is not assignable to type '{ reqd: any; }'.
+ Property 'reqd' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/react.d.ts (0 errors) ====
@@ -44,13 +46,15 @@ tests/cases/conformance/jsx/file.tsx(28,11): error TS2610: The attributes provid
const T = TestMod.Test;
var t1 = ;
~
-!!! error TS2610: The attributes provided to 'T' are not assignable to type '{ reqd: any; }'
-!!! error TS2610: Property 'reqd' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
+!!! error TS2322: Type '{}' is not assignable to type '{ reqd: any; }'.
+!!! error TS2322: Property 'reqd' is missing in the provided JSX attributes.
// Should error
var t2 = ;
~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'TestMod.Test' are not assignable to type '{ reqd: any; }'
-!!! error TS2610: Property 'reqd' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type 'IntrinsicAttributes & { reqd: any; }'.
+!!! error TS2322: Type '{}' is not assignable to type '{ reqd: any; }'.
+!!! error TS2322: Property 'reqd' is missing in the provided JSX attributes.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeResolution3.errors.txt b/tests/baselines/reference/tsxAttributeResolution3.errors.txt
index 70bee1f914981..98e8ad21a4b57 100644
--- a/tests/baselines/reference/tsxAttributeResolution3.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution3.errors.txt
@@ -1,8 +1,8 @@
-tests/cases/conformance/jsx/file.tsx(19,2): error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
+tests/cases/conformance/jsx/file.tsx(19,2): error TS2322: Type '{ x: number; }' is not assignable to type 'Attribs1'.
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
-tests/cases/conformance/jsx/file.tsx(23,2): error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
- Property 'x' is missing in type '{ y: number; }'.
+tests/cases/conformance/jsx/file.tsx(23,2): error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'.
+ Property 'x' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(31,8): error TS2326: Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -28,16 +28,16 @@ tests/cases/conformance/jsx/file.tsx(31,8): error TS2326: Types of property 'x'
var obj2 = { x: 32 };
~~~~~
-!!! error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
-!!! error TS2610: Types of property 'x' are incompatible.
-!!! error TS2610: Type 'number' is not assignable to type 'string'.
+!!! error TS2322: Type '{ x: number; }' is not assignable to type 'Attribs1'.
+!!! error TS2322: Types of property 'x' are incompatible.
+!!! error TS2322: Type 'number' is not assignable to type 'string'.
// Error, x is missing
var obj3 = { y: 32 };
~~~~~
-!!! error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
-!!! error TS2610: Property 'x' is missing in type '{ y: number; }'.
+!!! error TS2322: Type '{ y: number; }' is not assignable to type 'Attribs1'.
+!!! error TS2322: Property 'x' is missing in the provided JSX attributes.
// OK
var obj4 = { x: 32, y: 32 };
diff --git a/tests/baselines/reference/tsxAttributeResolution5.errors.txt b/tests/baselines/reference/tsxAttributeResolution5.errors.txt
index 76745dc16d857..7eced05910634 100644
--- a/tests/baselines/reference/tsxAttributeResolution5.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution5.errors.txt
@@ -5,8 +5,8 @@ tests/cases/conformance/jsx/file.tsx(21,10): error TS2322: Type 'T' is not assig
tests/cases/conformance/jsx/file.tsx(25,10): error TS2322: Type 'T' is not assignable to type 'Attribs1'.
Type '{ y: string; }' is not assignable to type 'Attribs1'.
Property 'x' is missing in type '{ y: string; }'.
-tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
- Property 'x' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(29,2): error TS2322: Type '{}' is not assignable to type 'Attribs1'.
+ Property 'x' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/file.tsx (3 errors) ====
@@ -49,7 +49,7 @@ tests/cases/conformance/jsx/file.tsx(29,2): error TS2610: The attributes provide
; // Error, missing x
~~~~~
-!!! error TS2610: The attributes provided to 'test1' are not assignable to type 'Attribs1'
-!!! error TS2610: Property 'x' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type 'Attribs1'.
+!!! error TS2322: Property 'x' is missing in the provided JSX attributes.
; // Error, missing toString
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxAttributeResolution6.errors.txt b/tests/baselines/reference/tsxAttributeResolution6.errors.txt
index 2ba22cf607d97..5e2295ec6b9d3 100644
--- a/tests/baselines/reference/tsxAttributeResolution6.errors.txt
+++ b/tests/baselines/reference/tsxAttributeResolution6.errors.txt
@@ -2,8 +2,8 @@ tests/cases/conformance/jsx/file.tsx(10,8): error TS2326: Types of property 's'
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(11,8): error TS2326: Types of property 'n' are incompatible.
Type 'string' is not assignable to type 'boolean'.
-tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to 'test2' are not assignable to type '{ n: boolean; }'
- Property 'n' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{}' is not assignable to type '{ n: boolean; }'.
+ Property 'n' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/file.tsx (3 errors) ====
@@ -26,8 +26,8 @@ tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provide
!!! error TS2326: Type 'string' is not assignable to type 'boolean'.
;
~~~~~
-!!! error TS2610: The attributes provided to 'test2' are not assignable to type '{ n: boolean; }'
-!!! error TS2610: Property 'n' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type '{ n: boolean; }'.
+!!! error TS2322: Property 'n' is missing in the provided JSX attributes.
// OK
;
diff --git a/tests/baselines/reference/tsxElementResolution3.errors.txt b/tests/baselines/reference/tsxElementResolution3.errors.txt
index 06def8d264a71..1c9699dc0ff02 100644
--- a/tests/baselines/reference/tsxElementResolution3.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution3.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provided to 'span' are not assignable to type '{ n: string; }'
- Property 'n' is missing in type '{ w: string; }'.
+tests/cases/conformance/jsx/file.tsx(12,2): error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'.
+ Property 'n' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -16,5 +16,5 @@ tests/cases/conformance/jsx/file.tsx(12,2): error TS2610: The attributes provide
// Error
;
~~~~
-!!! error TS2610: The attributes provided to 'span' are not assignable to type '{ n: string; }'
-!!! error TS2610: Property 'n' is missing in type '{ w: string; }'.
\ No newline at end of file
+!!! error TS2322: Type '{ w: string; }' is not assignable to type '{ n: string; }'.
+!!! error TS2322: Property 'n' is missing in the provided JSX attributes.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxElementResolution4.errors.txt b/tests/baselines/reference/tsxElementResolution4.errors.txt
index 3959d394db1f9..3617582614b41 100644
--- a/tests/baselines/reference/tsxElementResolution4.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution4.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/file.tsx(16,2): error TS2610: The attributes provided to 'span' are not assignable to type '{ m: string; }'
- Property 'm' is missing in type '{ q: string; }'.
+tests/cases/conformance/jsx/file.tsx(16,2): error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'.
+ Property 'm' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -20,6 +20,6 @@ tests/cases/conformance/jsx/file.tsx(16,2): error TS2610: The attributes provide
// Error
;
~~~~
-!!! error TS2610: The attributes provided to 'span' are not assignable to type '{ m: string; }'
-!!! error TS2610: Property 'm' is missing in type '{ q: string; }'.
+!!! error TS2322: Type '{ q: string; }' is not assignable to type '{ m: string; }'.
+!!! error TS2322: Property 'm' is missing in the provided JSX attributes.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxElementResolution9.errors.txt b/tests/baselines/reference/tsxElementResolution9.errors.txt
index 42ace561ab7e9..ece14e20de41a 100644
--- a/tests/baselines/reference/tsxElementResolution9.errors.txt
+++ b/tests/baselines/reference/tsxElementResolution9.errors.txt
@@ -1,8 +1,8 @@
-tests/cases/conformance/jsx/file.tsx(11,2): error TS2610: The attributes provided to 'Obj1' are not assignable to type 'string | number'
+tests/cases/conformance/jsx/file.tsx(11,2): error TS2322: Type '{}' is not assignable to type 'string | number'.
Type '{}' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(18,2): error TS2610: The attributes provided to 'Obj2' are not assignable to type 'string | number'
+tests/cases/conformance/jsx/file.tsx(18,2): error TS2322: Type '{}' is not assignable to type 'string | number'.
Type '{}' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provided to 'Obj3' are not assignable to type 'string | number'
+tests/cases/conformance/jsx/file.tsx(25,2): error TS2322: Type '{ x: number; }' is not assignable to type 'string | number'.
Type '{ x: number; }' is not assignable to type 'number'.
@@ -19,8 +19,8 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provide
var Obj1: Obj1;
; // Error, return type is not an object type
~~~~
-!!! error TS2610: The attributes provided to 'Obj1' are not assignable to type 'string | number'
-!!! error TS2610: Type '{}' is not assignable to type 'number'.
+!!! error TS2322: Type '{}' is not assignable to type 'string | number'.
+!!! error TS2322: Type '{}' is not assignable to type 'number'.
interface Obj2 {
(n: string): { x: number };
@@ -29,8 +29,8 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provide
var Obj2: Obj2;
; // Error, return type is not an object type
~~~~
-!!! error TS2610: The attributes provided to 'Obj2' are not assignable to type 'string | number'
-!!! error TS2610: Type '{}' is not assignable to type 'number'.
+!!! error TS2322: Type '{}' is not assignable to type 'string | number'.
+!!! error TS2322: Type '{}' is not assignable to type 'number'.
interface Obj3 {
(n: string): { x: number };
@@ -39,6 +39,6 @@ tests/cases/conformance/jsx/file.tsx(25,2): error TS2610: The attributes provide
var Obj3: Obj3;
; // OK
~~~~
-!!! error TS2610: The attributes provided to 'Obj3' are not assignable to type 'string | number'
-!!! error TS2610: Type '{ x: number; }' is not assignable to type 'number'.
+!!! error TS2322: Type '{ x: number; }' is not assignable to type 'string | number'.
+!!! error TS2322: Type '{ x: number; }' is not assignable to type 'number'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt b/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
index 7437a9a6e62d2..56a0b6eac7d70 100644
--- a/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
+++ b/tests/baselines/reference/tsxIntrinsicAttributeErrors.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2610: The attributes provided to 'E' are not assignable to type 'IntrinsicAttributes'
- Property 'key' is missing in type '{ x: number; }'.
+tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes'.
+ Property 'key' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx (1 errors) ====
@@ -33,6 +33,6 @@ tests/cases/conformance/jsx/tsxIntrinsicAttributeErrors.tsx(29,2): error TS2610:
var E: I;
~
-!!! error TS2610: The attributes provided to 'E' are not assignable to type 'IntrinsicAttributes'
-!!! error TS2610: Property 'key' is missing in type '{ x: number; }'.
+!!! error TS2322: Type '{ x: number; }' is not assignable to type 'IntrinsicAttributes'.
+!!! error TS2322: Property 'key' is missing in the provided JSX attributes.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt b/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
index b2a3cf73e4700..d27353c607822 100644
--- a/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
+++ b/tests/baselines/reference/tsxReactComponentWithDefaultTypeParameter3.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/file.tsx(13,11): error TS2610: The attributes provided to 'MyComp' are not assignable to type 'Prop'
- Property 'a' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(13,11): error TS2322: Type '{}' is not assignable to type 'Prop'.
+ Property 'a' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(19,18): error TS2326: Types of property 'a' are incompatible.
Type 'string' is not assignable to type 'number'.
@@ -19,8 +19,8 @@ tests/cases/conformance/jsx/file.tsx(19,18): error TS2326: Types of property 'a'
// Error
let x1 =
~~~~~~
-!!! error TS2610: The attributes provided to 'MyComp' are not assignable to type 'Prop'
-!!! error TS2610: Property 'a' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type 'Prop'.
+!!! error TS2322: Property 'a' is missing in the provided JSX attributes.
// OK
let x =
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
index 1b8ed4f8738ea..68a7a8a356d03 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.errors.txt
@@ -2,7 +2,7 @@ tests/cases/conformance/jsx/file.tsx(27,33): error TS2326: Types of property 'y'
Type 'true' is not assignable to type 'false'.
tests/cases/conformance/jsx/file.tsx(28,50): error TS2326: Types of property 'x' are incompatible.
Type '3' is not assignable to type '2'.
-tests/cases/conformance/jsx/file.tsx(30,11): error TS2610: The attributes provided to 'OverWriteAttr' are not assignable to type 'Prop'
+tests/cases/conformance/jsx/file.tsx(30,11): error TS2322: Type '{ y: true; x: 2; overwrite: string; }' is not assignable to type 'Prop'.
Types of property 'y' are incompatible.
Type 'true' is not assignable to type 'false'.
@@ -45,8 +45,8 @@ tests/cases/conformance/jsx/file.tsx(30,11): error TS2610: The attributes provid
let x2 =
let x3 =
~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'OverWriteAttr' are not assignable to type 'Prop'
-!!! error TS2610: Types of property 'y' are incompatible.
-!!! error TS2610: Type 'true' is not assignable to type 'false'.
+!!! error TS2322: Type '{ y: true; x: 2; overwrite: string; }' is not assignable to type 'Prop'.
+!!! error TS2322: Types of property 'y' are incompatible.
+!!! error TS2322: Type 'true' is not assignable to type 'false'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
index 83ebec3d93a06..9f4c7657dacf2 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution16.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/file.tsx(11,10): error TS2610: The attributes provided to 'AnotherComponent' are not assignable to type 'AnotherComponentProps'
- Property 'AnotherProperty1' is missing in type '{ property1: string; property2: number; }'.
+tests/cases/conformance/jsx/file.tsx(11,10): error TS2322: Type '{ property1: string; property2: number; }' is not assignable to type 'AnotherComponentProps'.
+ Property 'AnotherProperty1' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -15,8 +15,8 @@ tests/cases/conformance/jsx/file.tsx(11,10): error TS2610: The attributes provid
// Error: missing property
~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'AnotherComponent' are not assignable to type 'AnotherComponentProps'
-!!! error TS2610: Property 'AnotherProperty1' is missing in type '{ property1: string; property2: number; }'.
+!!! error TS2322: Type '{ property1: string; property2: number; }' is not assignable to type 'AnotherComponentProps'.
+!!! error TS2322: Property 'AnotherProperty1' is missing in the provided JSX attributes.
);
}
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
index 69ff62a33d9c2..c9836c44c84f6 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.errors.txt
@@ -1,15 +1,15 @@
-tests/cases/conformance/jsx/file.tsx(17,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
- Property 'x' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(18,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
- Property 'x' is missing in type '{}'.
+tests/cases/conformance/jsx/file.tsx(17,10): error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
+ Property 'x' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(18,10): error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
+ Property 'x' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(19,19): error TS2326: Types of property 'x' are incompatible.
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(19,21): error TS2326: Types of property 'y' are incompatible.
Type 'true' is not assignable to type '"2"'.
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{ x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
-tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(21,11): error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
Types of property 'x' are incompatible.
Type 'number' is not assignable to type 'string'.
@@ -33,12 +33,12 @@ tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provid
// Error
let p = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
-!!! error TS2610: Property 'x' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
+!!! error TS2322: Property 'x' is missing in the provided JSX attributes.
let y = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
-!!! error TS2610: Property 'x' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type 'PoisonedProp'.
+!!! error TS2322: Property 'x' is missing in the provided JSX attributes.
let z = ;
~
!!! error TS2326: Types of property 'x' are incompatible.
@@ -48,11 +48,11 @@ tests/cases/conformance/jsx/file.tsx(21,11): error TS2610: The attributes provid
!!! error TS2326: Type 'true' is not assignable to type '"2"'.
let w = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
-!!! error TS2610: Types of property 'x' are incompatible.
-!!! error TS2610: Type 'number' is not assignable to type 'string'.
+!!! error TS2322: Type '{ x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
+!!! error TS2322: Types of property 'x' are incompatible.
+!!! error TS2322: Type 'number' is not assignable to type 'string'.
let w1 = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
-!!! error TS2610: Types of property 'x' are incompatible.
-!!! error TS2610: Type 'number' is not assignable to type 'string'.
\ No newline at end of file
+!!! error TS2322: Type '{ X: string; x: number; y: "2"; }' is not assignable to type 'PoisonedProp'.
+!!! error TS2322: Types of property 'x' are incompatible.
+!!! error TS2322: Type 'number' is not assignable to type 'string'.
\ No newline at end of file
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
index afbfb2ed8d377..22fa2022badb7 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution5.errors.txt
@@ -1,4 +1,4 @@
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{ x: string; y: number; }' is not assignable to type 'PoisonedProp'.
Types of property 'y' are incompatible.
Type 'number' is not assignable to type '2'.
tests/cases/conformance/jsx/file.tsx(33,10): error TS2559: Type '{ prop1: boolean; }' has no properties in common with type 'IntrinsicAttributes & IntrinsicClassAttributes & { children?: ReactNode; }'.
@@ -26,9 +26,9 @@ tests/cases/conformance/jsx/file.tsx(33,10): error TS2559: Type '{ prop1: boolea
// Error as "obj" has type { x: string; y: number }
let p = ;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'Poisoned' are not assignable to type 'PoisonedProp'
-!!! error TS2610: Types of property 'y' are incompatible.
-!!! error TS2610: Type 'number' is not assignable to type '2'.
+!!! error TS2322: Type '{ x: string; y: number; }' is not assignable to type 'PoisonedProp'.
+!!! error TS2322: Types of property 'y' are incompatible.
+!!! error TS2322: Type 'number' is not assignable to type '2'.
class EmptyProp extends React.Component<{}, {}> {
render() {
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt b/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
index 2c111f360008b..bbb29fa044245 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution6.errors.txt
@@ -1,6 +1,6 @@
-tests/cases/conformance/jsx/file.tsx(13,10): error TS2610: The attributes provided to 'TextComponent' are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
- The attributes provided to 'TextComponent' are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
- Property 'onEdit' is missing in type '{ editable: true; }'.
+tests/cases/conformance/jsx/file.tsx(13,10): error TS2322: Type '{ editable: true; }' is not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'.
+ Type '{ editable: true; }' is not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'.
+ Property 'onEdit' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/file.tsx (1 errors) ====
@@ -18,9 +18,9 @@ tests/cases/conformance/jsx/file.tsx(13,10): error TS2610: The attributes provid
// Error
let x =
~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'TextComponent' are not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'
-!!! error TS2610: The attributes provided to 'TextComponent' are not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'
-!!! error TS2610: Property 'onEdit' is missing in type '{ editable: true; }'.
+!!! error TS2322: Type '{ editable: true; }' is not assignable to type '(IntrinsicAttributes & IntrinsicClassAttributes & { editable: false; } & { children?: ReactNode; }) | (IntrinsicAttributes & IntrinsicClassAttributes & { editable: true; onEdit: (newText: string) => void; } & { children?: ReactNode; })'.
+!!! error TS2322: Type '{ editable: true; }' is not assignable to type '{ editable: true; onEdit: (newText: string) => void; }'.
+!!! error TS2322: Property 'onEdit' is missing in the provided JSX attributes.
const textProps: TextProps = {
editable: false
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
index 4b740b674ac73..e305aa2ba14e1 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload4.errors.txt
@@ -1,15 +1,15 @@
-tests/cases/conformance/jsx/file.tsx(12,13): error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
- Property 'yy' is missing in type '{ extraProp: true; }'.
-tests/cases/conformance/jsx/file.tsx(13,13): error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
- Property 'yy1' is missing in type '{ yy: number; }'.
+tests/cases/conformance/jsx/file.tsx(12,13): error TS2322: Type '{ extraProp: true; }' is not assignable to type '{ yy: number; yy1: string; }'.
+ Property 'yy' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(13,13): error TS2322: Type '{ yy: number; }' is not assignable to type '{ yy: number; yy1: string; }'.
+ Property 'yy1' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(14,31): error TS2326: Types of property 'yy1' are incompatible.
Type 'true' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(16,31): error TS2339: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
-tests/cases/conformance/jsx/file.tsx(17,13): error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
+tests/cases/conformance/jsx/file.tsx(17,13): error TS2322: Type '{ yy: boolean; yy1: string; }' is not assignable to type '{ yy: number; yy1: string; }'.
Types of property 'yy' are incompatible.
Type 'boolean' is not assignable to type 'number'.
-tests/cases/conformance/jsx/file.tsx(25,13): error TS2610: The attributes provided to 'TestingOneThing' are not assignable to type '{ yy: string; direction?: number; }'
- Property 'yy' is missing in type '{ extra-data: true; }'.
+tests/cases/conformance/jsx/file.tsx(25,13): error TS2322: Type '{ extra-data: true; }' is not assignable to type '{ yy: string; direction?: number; }'.
+ Property 'yy' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(26,40): error TS2326: Types of property 'direction' are incompatible.
Type 'string' is not assignable to type 'number'.
tests/cases/conformance/jsx/file.tsx(33,32): error TS2326: Types of property 'y3' are incompatible.
@@ -36,12 +36,12 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
// Error
const c0 = ; // extra property;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
-!!! error TS2610: Property 'yy' is missing in type '{ extraProp: true; }'.
+!!! error TS2322: Type '{ extraProp: true; }' is not assignable to type '{ yy: number; yy1: string; }'.
+!!! error TS2322: Property 'yy' is missing in the provided JSX attributes.
const c1 = ; // missing property;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
-!!! error TS2610: Property 'yy1' is missing in type '{ yy: number; }'.
+!!! error TS2322: Type '{ yy: number; }' is not assignable to type '{ yy: number; yy1: string; }'.
+!!! error TS2322: Property 'yy1' is missing in the provided JSX attributes.
const c2 = ; // type incompatible;
~~~
!!! error TS2326: Types of property 'yy1' are incompatible.
@@ -52,9 +52,9 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
!!! error TS2339: Property 'y1' does not exist on type 'IntrinsicAttributes & { yy: number; yy1: string; }'.
const c5 = ; // type incompatible;
~~~~~~~~
-!!! error TS2610: The attributes provided to 'OneThing' are not assignable to type '{ yy: number; yy1: string; }'
-!!! error TS2610: Types of property 'yy' are incompatible.
-!!! error TS2610: Type 'boolean' is not assignable to type 'number'.
+!!! error TS2322: Type '{ yy: boolean; yy1: string; }' is not assignable to type '{ yy: number; yy1: string; }'.
+!!! error TS2322: Types of property 'yy' are incompatible.
+!!! error TS2322: Type 'boolean' is not assignable to type 'number'.
const c6 = ; // Should error as there is extra attribute that doesn't match any. Current it is not
const c7 = ; // Should error as there is extra attribute that doesn't match any. Current it is not
@@ -64,8 +64,8 @@ tests/cases/conformance/jsx/file.tsx(36,29): error TS2326: Types of property 'y1
// Error
const d1 =
~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'TestingOneThing' are not assignable to type '{ yy: string; direction?: number; }'
-!!! error TS2610: Property 'yy' is missing in type '{ extra-data: true; }'.
+!!! error TS2322: Type '{ extra-data: true; }' is not assignable to type '{ yy: string; direction?: number; }'.
+!!! error TS2322: Property 'yy' is missing in the provided JSX attributes.
const d2 =
~~~~~~~~~~~~~~~~
!!! error TS2326: Types of property 'direction' are incompatible.
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
index b972d38a525bf..47d3b9b3b3108 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentOverload5.errors.txt
@@ -1,13 +1,13 @@
-tests/cases/conformance/jsx/file.tsx(48,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
- Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }'.
-tests/cases/conformance/jsx/file.tsx(49,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
- Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: any) => void; }'.
-tests/cases/conformance/jsx/file.tsx(50,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
- Property '"data-format"' is missing in type '{ onClick: () => void; to: string; }'.
-tests/cases/conformance/jsx/file.tsx(51,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
- Property '"data-format"' is missing in type '{ onClick: (k: MouseEvent) => void; to: string; }'.
-tests/cases/conformance/jsx/file.tsx(53,13): error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
- Property '"data-format"' is missing in type '{ to: string; onClick(e: any): void; }'.
+tests/cases/conformance/jsx/file.tsx(48,13): error TS2322: Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'HyphenProps'.
+ Property '"data-format"' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(49,13): error TS2322: Type '{ children: string; to: string; onClick: (e: any) => void; }' is not assignable to type 'HyphenProps'.
+ Property '"data-format"' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(50,13): error TS2322: Type '{ onClick: () => void; to: string; }' is not assignable to type 'HyphenProps'.
+ Property '"data-format"' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(51,13): error TS2322: Type '{ onClick: (k: MouseEvent) => void; to: string; }' is not assignable to type 'HyphenProps'.
+ Property '"data-format"' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(53,13): error TS2322: Type '{ to: string; onClick(e: any): void; }' is not assignable to type 'HyphenProps'.
+ Property '"data-format"' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(54,51): error TS2326: Types of property 'children' are incompatible.
Type 'number' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(55,68): error TS2326: Types of property 'className' are incompatible.
@@ -66,25 +66,25 @@ tests/cases/conformance/jsx/file.tsx(56,24): error TS2326: Types of property 'da
// Error
const b0 = {}}>GO; // extra property;
~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
-!!! error TS2610: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }'.
+!!! error TS2322: Type '{ children: string; to: string; onClick: (e: MouseEvent) => void; }' is not assignable to type 'HyphenProps'.
+!!! error TS2322: Property '"data-format"' is missing in the provided JSX attributes.
const b1 = {}} {...obj0}>Hello world; // extra property;
~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
-!!! error TS2610: Property '"data-format"' is missing in type '{ children: string; to: string; onClick: (e: any) => void; }'.
+!!! error TS2322: Type '{ children: string; to: string; onClick: (e: any) => void; }' is not assignable to type 'HyphenProps'.
+!!! error TS2322: Property '"data-format"' is missing in the provided JSX attributes.
const b2 = ; // extra property
~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
-!!! error TS2610: Property '"data-format"' is missing in type '{ onClick: () => void; to: string; }'.
+!!! error TS2322: Type '{ onClick: () => void; to: string; }' is not assignable to type 'HyphenProps'.
+!!! error TS2322: Property '"data-format"' is missing in the provided JSX attributes.
const b3 = {}}} />; // extra property
~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
-!!! error TS2610: Property '"data-format"' is missing in type '{ onClick: (k: MouseEvent) => void; to: string; }'.
+!!! error TS2322: Type '{ onClick: (k: MouseEvent) => void; to: string; }' is not assignable to type 'HyphenProps'.
+!!! error TS2322: Property '"data-format"' is missing in the provided JSX attributes.
const b4 = ; // Should error because Incorrect type; but attributes are any so everything is allowed
const b5 = ; // Spread retain method declaration (see GitHub #13365), so now there is an extra attributes
~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MainButton' are not assignable to type 'HyphenProps'
-!!! error TS2610: Property '"data-format"' is missing in type '{ to: string; onClick(e: any): void; }'.
+!!! error TS2322: Type '{ to: string; onClick(e: any): void; }' is not assignable to type 'HyphenProps'.
+!!! error TS2322: Property '"data-format"' is missing in the provided JSX attributes.
const b6 = ; // incorrect type for optional attribute
~~~~~~~~~~~~~
!!! error TS2326: Types of property 'children' are incompatible.
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
index 0224fd95f70c5..83226885974a8 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponents1.errors.txt
@@ -1,10 +1,10 @@
-tests/cases/conformance/jsx/file.tsx(19,10): error TS2610: The attributes provided to 'Greet' are not assignable to type '{ name: string; }'
- Property 'name' is missing in type '{ naaame: string; }'.
+tests/cases/conformance/jsx/file.tsx(19,10): error TS2322: Type '{ naaame: string; }' is not assignable to type '{ name: string; }'.
+ Property 'name' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(27,15): error TS2326: Types of property 'name' are incompatible.
Type 'number' is not assignable to type 'string'.
tests/cases/conformance/jsx/file.tsx(29,10): error TS2559: Type '{ naaaaaaame: string; }' has no properties in common with type 'IntrinsicAttributes & { name?: string; }'.
-tests/cases/conformance/jsx/file.tsx(34,10): error TS2610: The attributes provided to 'MeetAndGreet' are not assignable to type '{ "prop-name": string; }'
- Property '"prop-name"' is missing in type '{ extra-prop-name: string; }'.
+tests/cases/conformance/jsx/file.tsx(34,10): error TS2322: Type '{ extra-prop-name: string; }' is not assignable to type '{ "prop-name": string; }'.
+ Property '"prop-name"' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(37,10): error TS2559: Type '{ prop1: true; }' has no properties in common with type 'IntrinsicAttributes'.
tests/cases/conformance/jsx/file.tsx(38,11): error TS2559: Type '{ ref: (x: any) => any; }' has no properties in common with type 'IntrinsicAttributes'.
tests/cases/conformance/jsx/file.tsx(41,16): error TS1005: ',' expected.
@@ -32,8 +32,8 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea
// Error
let b = ;
~~~~~
-!!! error TS2610: The attributes provided to 'Greet' are not assignable to type '{ name: string; }'
-!!! error TS2610: Property 'name' is missing in type '{ naaame: string; }'.
+!!! error TS2322: Type '{ naaame: string; }' is not assignable to type '{ name: string; }'.
+!!! error TS2322: Property 'name' is missing in the provided JSX attributes.
// OK
let c = ;
@@ -55,8 +55,8 @@ tests/cases/conformance/jsx/file.tsx(45,11): error TS2559: Type '{ prop1: boolea
// Error
let h = ;
~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'MeetAndGreet' are not assignable to type '{ "prop-name": string; }'
-!!! error TS2610: Property '"prop-name"' is missing in type '{ extra-prop-name: string; }'.
+!!! error TS2322: Type '{ extra-prop-name: string; }' is not assignable to type '{ "prop-name": string; }'.
+!!! error TS2322: Property '"prop-name"' is missing in the provided JSX attributes.
// Error
let i =
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
index 1c94f28113dfc..5f8b4024c176c 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
+++ b/tests/baselines/reference/tsxStatelessFunctionComponentsWithTypeArguments4.errors.txt
@@ -1,5 +1,5 @@
-tests/cases/conformance/jsx/file.tsx(9,15): error TS2610: The attributes provided to 'OverloadComponent' are not assignable to type '{ b: {}; a: number; }'
- Property 'b' is missing in type '{ a: number; }'.
+tests/cases/conformance/jsx/file.tsx(9,15): error TS2322: Type '{ a: number; }' is not assignable to type '{ b: {}; a: number; }'.
+ Property 'b' is missing in the provided JSX attributes.
tests/cases/conformance/jsx/file.tsx(10,15): error TS2322: Type 'T & { ignore-prop: true; }' is not assignable to type 'IntrinsicAttributes & { b: {}; a: {}; }'.
Type 'T & { ignore-prop: true; }' is not assignable to type '{ b: {}; a: {}; }'.
Property 'a' is missing in type '{ b: number; } & { ignore-prop: true; }'.
@@ -16,8 +16,8 @@ tests/cases/conformance/jsx/file.tsx(10,15): error TS2322: Type 'T & { ignore-pr
function Baz(arg1: T, arg2: U) {
let a0 =
~~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'OverloadComponent' are not assignable to type '{ b: {}; a: number; }'
-!!! error TS2610: Property 'b' is missing in type '{ a: number; }'.
+!!! error TS2322: Type '{ a: number; }' is not assignable to type '{ b: {}; a: number; }'.
+!!! error TS2322: Property 'b' is missing in the provided JSX attributes.
let a2 = // missing a
~~~~~~~~~~~~~~~~~
!!! error TS2322: Type 'T & { ignore-prop: true; }' is not assignable to type 'IntrinsicAttributes & { b: {}; a: {}; }'.
diff --git a/tests/baselines/reference/tsxUnionElementType6.errors.txt b/tests/baselines/reference/tsxUnionElementType6.errors.txt
index d11f288226913..c093a75e90977 100644
--- a/tests/baselines/reference/tsxUnionElementType6.errors.txt
+++ b/tests/baselines/reference/tsxUnionElementType6.errors.txt
@@ -1,10 +1,10 @@
tests/cases/conformance/jsx/file.tsx(18,10): error TS2559: Type '{ x: true; }' has no properties in common with type 'IntrinsicAttributes'.
tests/cases/conformance/jsx/file.tsx(19,27): error TS2326: Types of property 'x' are incompatible.
Type 'string' is not assignable to type 'boolean'.
-tests/cases/conformance/jsx/file.tsx(20,10): error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
- Property 'x' is missing in type '{}'.
-tests/cases/conformance/jsx/file.tsx(21,10): error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
- Property 'x' is missing in type '{ data-prop: true; }'.
+tests/cases/conformance/jsx/file.tsx(20,10): error TS2322: Type '{}' is not assignable to type '{ x: boolean; }'.
+ Property 'x' is missing in the provided JSX attributes.
+tests/cases/conformance/jsx/file.tsx(21,10): error TS2322: Type '{ data-prop: true; }' is not assignable to type '{ x: boolean; }'.
+ Property 'x' is missing in the provided JSX attributes.
==== tests/cases/conformance/jsx/file.tsx (4 errors) ====
@@ -34,11 +34,11 @@ tests/cases/conformance/jsx/file.tsx(21,10): error TS2610: The attributes provid
!!! error TS2326: Type 'string' is not assignable to type 'boolean'.
let c = ;
~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
-!!! error TS2610: Property 'x' is missing in type '{}'.
+!!! error TS2322: Type '{}' is not assignable to type '{ x: boolean; }'.
+!!! error TS2322: Property 'x' is missing in the provided JSX attributes.
let d = ;
~~~~~~~~~~~~~~~~
-!!! error TS2610: The attributes provided to 'SFC2AndEmptyComp' are not assignable to type '{ x: boolean; }'
-!!! error TS2610: Property 'x' is missing in type '{ data-prop: true; }'.
+!!! error TS2322: Type '{ data-prop: true; }' is not assignable to type '{ x: boolean; }'.
+!!! error TS2322: Property 'x' is missing in the provided JSX attributes.
\ No newline at end of file