Skip to content

Commit 9d585a1

Browse files
committed
tests
1 parent 4f9ada0 commit 9d585a1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/composition.test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,11 @@ const _1 = <T, Fn extends (x: T) => number>(f: Fn) => {
8787
pipe((x: T) => x, f);
8888
};
8989

90-
// limitation of type system
91-
// const _2 = <Fn extends (x: string) => number>(f: Fn) => {
90+
// failing typing tests:
91+
92+
// const _2 = pipe(<T extends number>(x: T) => x, (y: number) => y)(1) + 7;
93+
94+
// const _3 = <Fn extends (x: string) => number>(f: Fn) => {
9295
// // @ts-expect-error first function does not match second
9396
// pipe((x: number) => x, f);
9497
// };

0 commit comments

Comments
 (0)