progress
This commit is contained in:
parent
3596e01c28
commit
6af72e525c
3 changed files with 31 additions and 5 deletions
|
|
@ -36,5 +36,9 @@ const weirdFnType = makeGeneric(a =>
|
|||
in: fnType({in: a, out: Int}),
|
||||
out: fnType({in: lsType(a), out: a}),
|
||||
}));
|
||||
// we call this function with parameter of type (b -> b) ...
|
||||
// giving these substitutions:
|
||||
// a := b
|
||||
// b := Int
|
||||
console.log("should be: [Int] -> Int");
|
||||
console.log(pretty(assign(weirdFnType, idFnType)));
|
||||
console.log(pretty(assign(weirdFnType, idFnType)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue