Skip to content

Commit 710d1c8

Browse files
committed
added failure cases for poly
1 parent efae2ed commit 710d1c8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

012_systemf.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,6 @@ Substitution
250250
Erasure
251251
-------
252252

253-
The type erasure:
254-
255253
$$
256254
\begin{aligned}[lcl]
257255
& \t{erase}(x) &=&\ x \\
@@ -269,6 +267,6 @@ unbound-generics
269267
----------------
270268

271269
Up until now we've been writing our own binding implementation. There is however
272-
a better way
270+
a better way to automate writing a lot of the substitution boilerplate.
273271

274272
\clearpage

chapter7/poly/fail2.ml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
let f = (\x -> if x then x else (x+1));
2+
let g = (\x -> if x then 1 else (x+1));
3+
let h = (\x -> if x then (x+1) else 1);
4+
let j = (\x -> fix (x 0));

0 commit comments

Comments
 (0)