Commit 23c27aa2 authored by lewie's avatar lewie

[project @ 2001-04-23 19:25:06 by lewie]

Adding tests for infix decls w/ infix data constructors
parent 13890651
-- !!! Infix decls w/ infix data constructors
-- GHC used to barf on this...
module ShouldCompile where
infix 2 |-, |+
ps |- q:qs = undefined
ps |+ p:q:qs = undefined
-- !!! Infix decls w/ infix data constructors
module ShouldFail where
infix 6 |-
ps |- q:qs = undefined
read016.hs:7:
precedence parsing error
cannot mix `|-' [infix 6] and `:' [infixr 5] in the same infix expression
==================== Parser ====================
module ShouldFail where
|- ps q : qs = undefined
infix 6 |-
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