Skip to content
Snippets Groups Projects
Commit 42e5b24b authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-02-03 11:34:30 by simonm]

duplicate constructor test
parent 54a063d2
No related merge requests found
module ShouldFail where
--!!! duplicate constructors in datatype
-- (bug report from Alex Ferguson, c. 2.06)
data Token
= TokNewline
| TokLiteral
| TokCount
| TokCheck
| TokIs
| TokDeref
| TokFind
| TokLiteral -- Duplicated!
| TokThe
deriving Show
main = print TokCount
rnfail015.hs:9:
Conflicting definitions for `TokLiteral' in the data type declaration for Token
Compilation had errors
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment