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

[project @ 1998-02-12 14:19:12 by simonm]

test for newtype declaration with an unboxed field.
parent 9a4de3e7
No related merge requests found
{-# OPTIONS -fglasgow-exts #-}
module ShouldFail where
--!!! unboxed field in newtype declaration
import GlaExts ( Int# )
newtype Unboxed = Unboxed Int#
f = [ Unboxed 1#, Unboxed 2# ] -- shouldn't be allowed!
tcfail079.hs:9:
Newtype constructor field has an unboxed type: `Int#'
In the newtype declaration for `Unboxed'
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