Ticket #100 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Output gets printed twice

Reported by: erikd@… Owned by: benl
Priority: blocker Milestone: 0.1.3
Component: Source Type Inferencer Version: 0.1.2
Keywords: Cc:

Description

Simple program:

main =

println $ show [ 1 .. 6 ]

prints out:

[1, 2, 3, 4, 5, 6] [1, 2, 3, 4, 5, 6]

when it should print just a single line:

[1, 2, 3, 4, 5, 6]

Change History

Changed 5 years ago by erikd

More info, this does the wrong thing:

main =

println $ show [ 1 .. 6 ]

while this:

main () =

println $ show [ 1 .. 6 ]

does the right thing.

I suspect that the first one should actually be disallowed.

Changed 5 years ago by benl

  • status changed from new to assigned
  • component changed from Unknown to Source Type Inferencer
  • priority changed from normal to blocker
  • version set to 0.1.2
  • milestone set to 0.1.3
  • owner set to benl

Changed 5 years ago by benl

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

The check on the type of the main fn got broken when we moved to support making executables from modules not called Main.

Note: See TracTickets for help on using tickets.