Ticket #7734 (closed bug: fixed)

Opened 3 months ago

Last modified 3 months ago

Missing backticks in error message

Reported by: monoidal Owned by:
Priority: normal Milestone: 7.8.1
Component: Compiler Version: 7.6.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Incorrect warning at compile-time Difficulty: Unknown
Test Case: T7734 Blocked By:
Blocking: Related Tickets:

Description

The code

x `f` y = x x
(&) x y = x x

gives errors with missing backticks and parentheses:

A.hs:1:13:
    Occurs check: cannot construct the infinite type: t1 = t1 -> t0
    In the first argument of `x', namely `x'
    In the expression: x x
    In an equation for `f': x f y = x x
                            ^^^^^

A.hs:2:13:
    Occurs check: cannot construct the infinite type: t1 = t1 -> t0
    In the first argument of `x', namely `x'
    In the expression: x x
    In an equation for `&': & x y = x x
                            ^^^^^

Attachments

backticks.patch Download (2.1 KB) - added by monoidal 3 months ago.
tests.patch Download (0.7 KB) - added by monoidal 3 months ago.

Change History

Changed 3 months ago by monoidal

Changed 3 months ago by monoidal

Changed 3 months ago by monoidal

  • status changed from new to patch

Changed 3 months ago by ian@…

commit 4348e0b4401047f019f6a1ae89d5906fb628dcaa

Author: Ian Lynagh <ian@well-typed.com>
Date:   Sun Mar 3 16:30:23 2013 +0000

    Fix missing backticks and parentheses in error messages; fixes #7734
    
    Patch from monoidal

 compiler/hsSyn/HsExpr.lhs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Changed 3 months ago by igloo

  • status changed from patch to closed
  • difficulty set to Unknown
  • resolution set to fixed
  • testcase set to T7734
  • milestone set to 7.8.1

Applied thanks!

Note: See TracTickets for help on using tickets.