Commit 99da484e authored by Krzysztof Gogolewski's avatar Krzysztof Gogolewski Committed by Simon Peyton Jones
Browse files

Test Trac #7959

parent 557fa200
{-# LANGUAGE NullaryTypeClasses, StandaloneDeriving #-}
module T7959 where
class A
deriving instance A
data B deriving A
T7959.hs:5:1:
Cannot derive instances for nullary classes
In the stand-alone deriving instance for ‛A’
T7959.hs:6:17:
Cannot derive instances for nullary classes
In the data declaration for ‛B’
...@@ -40,3 +40,4 @@ test('T1133A', ...@@ -40,3 +40,4 @@ test('T1133A',
run_command, run_command,
['$MAKE --no-print-directory -s T1133A']) ['$MAKE --no-print-directory -s T1133A'])
test('T5863a', normal, compile_fail, ['']) test('T5863a', normal, compile_fail, [''])
test('T7959', normal, compile_fail, [''])
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