diff options
Diffstat (limited to 'testsuite/tests/hiefile/should_compile/Scopes.hs')
-rw-r--r-- | testsuite/tests/hiefile/should_compile/Scopes.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/hiefile/should_compile/Scopes.hs b/testsuite/tests/hiefile/should_compile/Scopes.hs new file mode 100644 index 0000000000..e3cbd8558f --- /dev/null +++ b/testsuite/tests/hiefile/should_compile/Scopes.hs @@ -0,0 +1,13 @@ +{-# LANGUAGE RecordWildCards #-} +module Scopes where +data T = C { x :: Int, y :: Char } + +-- Verify that names generated from record construction are in scope +foo = C { x = 1 , y = 'a' } + +-- Verify that record wildcards are in scope +sdaf :: T +sdaf = C{..} + where + x = 1 + y = 'a' |