mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
1.4 KiB
Diff
34 lines
1.4 KiB
Diff
--- old.noUncheckedIndexedAccessDestructuring.symbols
|
|
+++ new.noUncheckedIndexedAccessDestructuring.symbols
|
|
@@= skipped -61, +61 lines =@@
|
|
|
|
t2.z.toString(); // Should error
|
|
>t2.z.toString : Symbol(String.toString, Decl(lib.es5.d.ts, --, --))
|
|
+>t2.z : Symbol(t2.__index, Decl(noUncheckedIndexedAccessDestructuring.ts, 19, 23))
|
|
>t2 : Symbol(t2, Decl(noUncheckedIndexedAccessDestructuring.ts, 24, 7))
|
|
+>z : Symbol(t2.__index, Decl(noUncheckedIndexedAccessDestructuring.ts, 19, 23))
|
|
>toString : Symbol(String.toString, Decl(lib.es5.d.ts, --, --))
|
|
|
|
// Test intersections with declared properties
|
|
@@= skipped -52, +54 lines =@@
|
|
|
|
q.z.toFixed(); // Should error
|
|
>q.z.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --))
|
|
+>q.z : Symbol(q.__index, Decl(noUncheckedIndexedAccessDestructuring.ts, 28, 54))
|
|
>q : Symbol(q, Decl(noUncheckedIndexedAccessDestructuring.ts, 37, 14))
|
|
+>z : Symbol(q.__index, Decl(noUncheckedIndexedAccessDestructuring.ts, 28, 54))
|
|
>toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --))
|
|
}
|
|
|
|
@@= skipped -28, +30 lines =@@
|
|
|
|
q.
|
|
>q. z.toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --))
|
|
+>q. z : Symbol(q.__index, Decl(noUncheckedIndexedAccessDestructuring.ts, 28, 54))
|
|
>q : Symbol(q, Decl(noUncheckedIndexedAccessDestructuring.ts, 44, 14))
|
|
|
|
z.toFixed(); // Should error
|
|
+>z : Symbol(q.__index, Decl(noUncheckedIndexedAccessDestructuring.ts, 28, 54))
|
|
>toFixed : Symbol(Number.toFixed, Decl(lib.es5.d.ts, --, --))
|
|
}
|