Skip to content

Operators without colons

This code is accepted:

data A x y = (&) x y

but it's wrong - as far as I know operators on the value level are constructors iff they start with a colon (:&). (In fact a = (&) reports "Not in scope: (&)".)

Trac metadata
Trac field Value
Version 7.6.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information