Skip to content

Warning 50 triggers on "empty" files #7138

Closed

Description

@vicuna

Original bug ID: 7138
Reporter: @trefis
Assigned to: @lpw25
Status: resolved (set by @gasche on 2018-05-11T20:33:55Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.07.0+dev/beta2/rc1/rc2
Category: lexing and parsing
Has duplicate: #7701
Monitored by: @hcarty

Bug description

If a .mli file contains nothing but a doc comment, warning 50 will trigger as the comment is considered unattached.

Additional information

Adding code after the comment makes the warning go away.

Adding only blank lines after the comment doesn't make the warning go away.

Adding two (or more) blank lines before the comment makes the warning go away.

Adding only one blank line before the comment doesn't make the warning go away.

Activity

  1. vicuna commented on Feb 9, 2016

    @vicuna
    Author

    Comment author: @lpw25

    I had a look at this but it is not an easy fix so it will have to wait for 4.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions