Guest User

Untitled

a guest
Feb 18th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. diff --git a/parsing/parser.mly b/parsing/parser.mly
  2. index 6210cc5..709895d 100644
  3. --- a/parsing/parser.mly
  4. +++ b/parsing/parser.mly
  5. @@ -1356,6 +1356,8 @@ expr:
  6. { unclosed "object" 1 "end" 4 }
  7. | expr attribute
  8. { Exp.attr $1 $2 }
  9. + | LPAREN COLON core_type RPAREN expr %prec below_SHARP
  10. + { mkexp (Pexp_constraint ($5, $3)) }
  11. ;
  12. simple_expr:
  13. val_longident
Add Comment
Please, Sign In to add comment