diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail085.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_fail/tcfail085.hs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail085.hs b/testsuite/tests/typecheck/should_fail/tcfail085.hs new file mode 100644 index 0000000000..81036b9dfc --- /dev/null +++ b/testsuite/tests/typecheck/should_fail/tcfail085.hs @@ -0,0 +1,10 @@ +-- !!! Check that not supplying bindings for strict fields +-- !!! is flagged as being incorrect. +module ShouldFail where + +data F + = F { x :: Int, y :: !Int } + +z :: F +z = F { x = 2 } + |