Mercurial > urweb
view tests/cancel.ur @ 2070:382911d72e63
Check realloc's return code to prevent segfault on out of memory condition (Part 3)
author | Sergey Mironov <grrwlf@gmail.com> |
---|---|
date | Tue, 02 Sep 2014 17:37:22 +0000 |
parents | dfb38a333816 |
children |
line wrap: on
line source
type t = {A : int, B : float, C : string} type u = {A : int, C : string, D : bool} fun f (x : t) = x fun g (x : u) = f x fun h [ts] [ts ~ [A]] (r : $([A = int] ++ ts)) : $([A = int, B = float] ++ ts) = r