mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
38 lines
2.6 KiB
Diff
38 lines
2.6 KiB
Diff
--- old.baseClassImprovedMismatchErrors.errors.txt
|
|
+++ new.baseClassImprovedMismatchErrors.errors.txt
|
|
@@= skipped -7, +7 lines =@@
|
|
Type 'string' is not assignable to type 'number'.
|
|
baseClassImprovedMismatchErrors.ts(8,5): error TS2564: Property 'n' has no initializer and is not definitely assigned in the constructor.
|
|
baseClassImprovedMismatchErrors.ts(9,5): error TS2416: Property 'fn' in type 'Derived' is not assignable to the same property in base type 'Base'.
|
|
- Type '() => number | string' is not assignable to type '() => number'.
|
|
+ Type '() => string | number' is not assignable to type '() => number'.
|
|
Type 'string | number' is not assignable to type 'number'.
|
|
Type 'string' is not assignable to type 'number'.
|
|
baseClassImprovedMismatchErrors.ts(14,5): error TS2416: Property 'n' in type 'DerivedInterface' is not assignable to the same property in base type 'Base'.
|
|
@@= skipped -12, +12 lines =@@
|
|
Type 'string' is not assignable to type 'number'.
|
|
baseClassImprovedMismatchErrors.ts(14,5): error TS2564: Property 'n' has no initializer and is not definitely assigned in the constructor.
|
|
baseClassImprovedMismatchErrors.ts(15,5): error TS2416: Property 'fn' in type 'DerivedInterface' is not assignable to the same property in base type 'Base'.
|
|
- Type '() => number | string' is not assignable to type '() => number'.
|
|
+ Type '() => string | number' is not assignable to type '() => number'.
|
|
Type 'string | number' is not assignable to type 'number'.
|
|
Type 'string' is not assignable to type 'number'.
|
|
|
|
@@= skipped -29, +29 lines =@@
|
|
fn() {
|
|
~~
|
|
!!! error TS2416: Property 'fn' in type 'Derived' is not assignable to the same property in base type 'Base'.
|
|
-!!! error TS2416: Type '() => number | string' is not assignable to type '() => number'.
|
|
+!!! error TS2416: Type '() => string | number' is not assignable to type '() => number'.
|
|
!!! error TS2416: Type 'string | number' is not assignable to type 'number'.
|
|
!!! error TS2416: Type 'string' is not assignable to type 'number'.
|
|
return 10 as number | string;
|
|
@@= skipped -21, +21 lines =@@
|
|
fn() {
|
|
~~
|
|
!!! error TS2416: Property 'fn' in type 'DerivedInterface' is not assignable to the same property in base type 'Base'.
|
|
-!!! error TS2416: Type '() => number | string' is not assignable to type '() => number'.
|
|
+!!! error TS2416: Type '() => string | number' is not assignable to type '() => number'.
|
|
!!! error TS2416: Type 'string | number' is not assignable to type 'number'.
|
|
!!! error TS2416: Type 'string' is not assignable to type 'number'.
|
|
return 10 as number | string;
|