-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Order of compilation affects error message; microsoft/TypeScript#33143
- Loading branch information
1 parent
dcfcdd6
commit 67374c1
Showing
4 changed files
with
55 additions
and
11 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
test/compile-time/expected-output/query/having/nullable-where-clause-not-allowed.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import * as tsql from "../../../../../dist"; | ||
/** | ||
* https://github.com/microsoft/TypeScript/issues/33143 | ||
* | ||
* Seems like adding this test changes the error message of the `WHERE` clause test. | ||
*/ | ||
export declare const query: tsql.Query<{ | ||
fromClause: tsql.IFromClause<{ | ||
outerQueryJoins: undefined; | ||
currentJoins: undefined; | ||
}>; | ||
selectClause: undefined; | ||
limitClause: undefined; | ||
unionClause: undefined; | ||
unionLimitClause: undefined; | ||
}>; | ||
This comment has been minimized.
Sorry, something went wrong. |
33 changes: 33 additions & 0 deletions
33
test/compile-time/expected-output/query/having/nullable-where-clause-not-allowed.ts.errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
[ | ||
{ | ||
"messageText": { | ||
"messageText": "Type 'ExprImpl<Mapper<unknown, boolean | null>, IUsedRef<{}>>' is not assignable to type 'IExpr<{ mapper: Mapper<unknown, boolean>; usedRef: IUsedRef<{}>; }>'.", | ||
"category": 1, | ||
"code": 2322, | ||
"next": { | ||
"messageText": "Types of property 'mapper' are incompatible.", | ||
"category": 1, | ||
"code": 2326, | ||
"next": { | ||
"messageText": "Type 'Mapper<unknown, boolean | null>' is not assignable to type 'Mapper<unknown, boolean>'.", | ||
"category": 1, | ||
"code": 2322, | ||
"next": { | ||
"messageText": "Type 'boolean | null' is not assignable to type 'boolean'.", | ||
"category": 1, | ||
"code": 2322, | ||
"next": { | ||
"messageText": "Type 'null' is not assignable to type 'boolean'.", | ||
This comment has been minimized.
Sorry, something went wrong.
AnyhowStep
Author
Owner
|
||
"category": 1, | ||
"code": 2322 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"code": 2322, | ||
"category": 1, | ||
"length": 44, | ||
"start": 266 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,7 @@ | |
"next": { | ||
"messageText": "Type 'Mapper<unknown, boolean | null>' is not assignable to type 'Mapper<unknown, boolean>'.", | ||
"category": 1, | ||
"code": 2322, | ||
"next": { | ||
"messageText": "Type 'boolean | null' is not assignable to type 'boolean'.", | ||
"category": 1, | ||
"code": 2322, | ||
"next": { | ||
"messageText": "Type 'null' is not assignable to type 'boolean'.", | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
AnyhowStep
Author
Owner
|
||
"category": 1, | ||
"code": 2322 | ||
} | ||
} | ||
"code": 2322 | ||
} | ||
} | ||
}, | ||
|
5 changes: 5 additions & 0 deletions
5
...nullable-where-clause-not-allowed.ts.todo → ...ving/nullable-where-clause-not-allowed.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The .d.ts of the new test. No problems here