fix(library/init/io): RefPointed must "depend" on \alpha

This commit is contained in:
Leonardo de Moura 2019-05-07 09:26:28 -07:00
parent 6a496844fd
commit bca57afae7

View file

@ -185,10 +185,9 @@ end Proc
/- References -/
constant RefPointed : PointedType := default _
def Ref (α : Type) : Type := RefPointed.type
instance (α : Type) : Inhabited (Ref α) :=
⟨RefPointed.val⟩
constant RefPointed (α : Type) : PointedType := default _
def Ref (α : Type) : Type := (RefPointed α).type
instance (α : Type) : Inhabited (Ref α) := ⟨(RefPointed α).val⟩
namespace Prim
@[extern 3 cpp inline "lean::io_mk_ref(#2, #3)"]