Commit 475c874d authored by sof's avatar sof
Browse files

[project @ 1997-05-19 00:34:38 by sof]

Duplicate constructor check
parent be4ff21c
{-
Date: Thu, 15 May 1997 14:20:29 +0100 (BST)
From: Alex Ferguson <abf@cs.ucc.ie>
The following erroneous fragment erroneously compiles.
And then promptly falls over in the assembler, of all places.
-}
data Token
= TokNewline
| TokLiteral
| TokCount
| TokCheck
| TokIs
| TokDeref
| TokFind
| TokLiteral -- Duplicated!
| TokThe
deriving Show
main = print TokCount
TOP = ../..
include $(TOP)/mk/boilerplate.mk
-include opts.mk
include $(TOP)/mk/target.mk
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment