Use substTyUnchecked in TcMType.new_meta_tv_x
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 2 Nov 2016 11:50:10 +0000 (11:50 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Wed, 2 Nov 2016 11:54:55 +0000 (11:54 +0000)
commitf4a14d6c535bdf52b19f441fe185ea13d62fdc24
tree9f9f8b94133494c9c5047f70653cd854127e23d4
parent7a509660b5ea3d0c387c8fa32146b60955364b17
Use substTyUnchecked in TcMType.new_meta_tv_x

Sadly, one of the indirect callers of this function doesn't yet
enforce the in-scope set.  It's in the TcHsType.tc_infer_args swamp,
so I'm not going to wade in there today.

The assertion tripped when investigating Trac #12785; but this patch
does NOT fix the actual bug reported there.
compiler/typecheck/TcMType.hs