Opened 2 years ago

Closed 2 years ago

#10781 closed bug (fixed)

Qualified use of undefined name starting with underscore considered a hole

Reported by: EyalLotem Owned by:
Priority: normal Milestone: 8.0.1
Component: Compiler Version: 7.10.2
Keywords: holes qualified Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Incorrect warning at compile-time Test Case: rename/should_fail/T10781.hs
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Foo._name is reported as an error ..: Found hole ....

It doesn't make much sense to use qualified holes like that, so it is not useful to treat such qualified names as holes.

Change History (2)

comment:1 Changed 2 years ago by Thomas Miedema <thomasmiedema@…>

In 8d89d80/ghc:

Testsuite: add test for #10781

comment:2 Changed 2 years ago by thomie

Milestone: 8.0.1
Resolution: fixed
Status: newclosed
Test Case: rename/should_fail/T10781.hs

Thanks for the report. Fixed in HEAD already.

Note: See TracTickets for help on using tickets.