fix(library/init/io): RefPointed must "depend" on \alpha
This commit is contained in:
parent
6a496844fd
commit
bca57afae7
1 changed files with 3 additions and 4 deletions
|
|
@ -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)"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue