aa37b28246
Fixes #38289
22 lines
639 B
TypeScript
22 lines
639 B
TypeScript
// @ts-expect-error additional commenting
|
|
var invalidCommentedFancy: number = 'nope';
|
|
|
|
// @ts-expect-error additional commenting
|
|
var validCommentedFancy: string = 'nope';
|
|
|
|
// @ts-expect-error
|
|
var invalidCommentedPlain: number = 'nope';
|
|
|
|
// @ts-expect-error
|
|
var validCommentedPlain: string = 'nope';
|
|
|
|
var invalidPlain: number = 'nope';
|
|
|
|
var validPlain: string = 'nope';
|
|
|
|
// @ts-expect-error
|
|
(({ a: true } as const).a === false); // <-- compiles (as expected via comment)
|
|
(({ a: true } as const).a === false); // Should error
|
|
|
|
(({ a: true } as const).a === false); // error
|
|
(({ a: true } as const).a === false); // error
|