Skip to content

compile-fail tests ignore pattern after the first : #207

Closed
@espindola

Description

@espindola

I am adding a test to compile-fail that has

// error-pattern: unresolved name: a

to test the test I changed the line to

// error-pattern: unresolved name: x

and to my surprise the test passed

changing it to something like

// error-pattern: unresolved namex: a

correctly causes it to fail

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions