summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/T14719.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/T14719.stderr')
-rw-r--r--testsuite/tests/gadt/T14719.stderr18
1 files changed, 18 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/T14719.stderr b/testsuite/tests/gadt/T14719.stderr
new file mode 100644
index 0000000000..cfac00c0c0
--- /dev/null
+++ b/testsuite/tests/gadt/T14719.stderr
@@ -0,0 +1,18 @@
+
+T14719.hs:5:3: error:
+ • Data constructor ‘MkFoo1’ returns type ‘Bool’
+ instead of an instance of its parent type ‘Foo1’
+ • In the definition of data constructor ‘MkFoo1’
+ In the data type declaration for ‘Foo1’
+ |
+5 | MkFoo1 :: Bool
+ | ^^^^^^^^^^^^^^
+
+T14719.hs:8:3: error:
+ • The constructor of a newtype must have exactly one field
+ but ‘MkFoo2’ has none
+ • In the definition of data constructor ‘MkFoo2’
+ In the newtype declaration for ‘Foo2’
+ |
+8 | MkFoo2 :: Foo2
+ | ^^^^^^^^^^^^^^