Skip to content

Commit

Permalink
Ensure parameter-ful ctor keeps working
Browse files Browse the repository at this point in the history
  • Loading branch information
amitdahan committed Sep 1, 2024
1 parent 2235d51 commit 81c89e5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tests/map-constructor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,11 @@ doNotExecute(() => {
const map = new Map() satisfies Map<string, boolean>;
type test = [Expect<Equal<typeof map, Map<string, boolean>>>];
});

doNotExecute(() => {
const map = new Map([
["foo", 1],
["bar", 2],
]);
type test = [Expect<Equal<typeof map, Map<string, number>>>];
});

0 comments on commit 81c89e5

Please sign in to comment.