summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/T16980a.hs
blob: b3024c4a41ebecf73ac226aea5b66ca3cb3ca6cd (plain)
1
2
3
4
5
6
7
8
9
10
module T16980a where

default (Integer)  -- just to be really explicit

x = 5   -- this should be an Integer

$(return [])

y :: Int
y = x   -- this should be a type error; types cannot communicate across splices