Skip to content

Confusing error message when parentheses are added around an expression #7148

@vicuna

Description

@vicuna

Original bug ID: 7148
Reporter: @dbuenzli
Status: acknowledged (set by @damiendoligez on 2017-04-13T11:21:39Z)
Resolution: open
Priority: normal
Severity: minor
Version: 4.02.3
Target version: later
Category: lexing and parsing
Child of: #5068
Monitored by: @diml @hcarty

Bug description

I find the following quite confusing

 ocaml
        OCaml version 4.02.3                                                                                                                                    
# f bla:i;;
Error: Syntax error
# (f bla:i);;
Error: Unbound type constructor i

The error came up while forgetting to add the ~ to a labelled argument.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions