Skip to content

Commit 0b2b3e4

Browse files
committed
---
yaml --- r: 888 b: refs/heads/master c: de16674 h: refs/heads/master v: v3
1 parent 67e062c commit 0b2b3e4

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 79015e2d599287d448662e3436f77026c4ffb232
2+
refs/heads/master: de166745b8035395485bc5bc598f9c507ae80376

trunk/src/boot/me/semant.ml

+6-1
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,14 @@ let rec pretty_ty_str (cx:ctxt) (fallback:(Ast.ty -> string)) (ty:Ast.ty) =
999999
"rec(" ^ (String.concat ", " fields) ^ ")"
10001000
| Ast.TY_fn (fnsig, aux) ->
10011001
let format_slot slot =
1002+
let prefix =
1003+
match slot.Ast.slot_mode with
1004+
Ast.MODE_local -> ""
1005+
| Ast.MODE_alias -> "&"
1006+
in
10021007
match slot.Ast.slot_ty with
10031008
None -> Common.bug () "no ty in slot"
1004-
| Some ty' -> pretty_ty_str cx fallback ty'
1009+
| Some ty' -> prefix ^ (pretty_ty_str cx fallback ty')
10051010
in
10061011
let effect = aux.Ast.fn_effect in
10071012
let qual = Fmt.sprintf_fmt Ast.fmt_effect_qual () effect in

0 commit comments

Comments
 (0)