Skip to content

Commit

Permalink
Use ref_ty instead of ref
Browse files Browse the repository at this point in the history
  • Loading branch information
upamanyus committed Jun 26, 2024
1 parent f889d62 commit 34fe5be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goose.go
Original file line number Diff line number Diff line change
Expand Up @@ -1222,9 +1222,9 @@ func (ctx Ctx) varSpec(s *ast.ValueSpec, cont glang.Expr) glang.Expr {
lhs := s.Names[0]
var rhs glang.Expr
if len(s.Values) == 0 {
ty := ctx.typeOf(lhs)
rhs = glang.NewCallExpr(glang.GallinaIdent("ref"),
glang.NewCallExpr(glang.GallinaIdent("zero_val"), ctx.coqTypeOfType(s, ty)))
ty := ctx.coqType(lhs)
rhs = glang.NewCallExpr(glang.GallinaIdent("ref_ty"), ty,
glang.NewCallExpr(glang.GallinaIdent("zero_val"), ty))
} else {
rhs = ctx.referenceTo(s.Values[0])
}
Expand Down

0 comments on commit 34fe5be

Please sign in to comment.