Ticket #104 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Renamer problem with class functions

Reported by: benl Owned by:
Priority: blocker Milestone: 0.1.3
Component: Source Desugarer Version: 0.1.2
Keywords: Cc:

Description

This program doesn't compile

data Thing

project Thing where
	write x = x

thing f 
 = do	str	= "thing"
	out	= f str
	putStr $ write&{Thing} out

main ()
 = do	putStr "dude"

But works when "out" is renamed to "o"

Note that there is a function in the Prelude called "out". Smells like a renamer problem.

Change History

Changed 5 years ago by erikd

  • status changed from new to closed
  • resolution set to fixed

Fixed in the following commit:

  Thu Aug 20 06:34:28 EST 2009  Erik de Castro Lopo <erikd@mega-nerd.com>
    * Fix #104 : Renamer problem with class functions
  
    Debugging and patch provided by Amos Robinson.
    Test from the bugtracker added as test/14-Desugar/T104-Renamer.
Note: See TracTickets for help on using tickets.