Formerly id id id id id id id id id... would do it, but looks like someone has put in a fix for that.
So, while id id has type ('a -> 'a) -> ('a -> 'a), this is stored in memory by a pointer structure that amounts to let 'b = ('a -> 'a) in ('b -> 'b). The type of id id id would become let 'b = ('a -> 'a) in let 'c = ('b -> 'b) in ('c -> 'c). This grows linearly. If one were to write out the types without sharing then their size would grow exponentially.
Apparently that's been fixed. I can't confirm because that's not something I ever check the type of.