diff options
Diffstat (limited to 'testsuite/tests/parser/should_fail/RecordDotSyntaxFail7.hs')
-rw-r--r-- | testsuite/tests/parser/should_fail/RecordDotSyntaxFail7.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_fail/RecordDotSyntaxFail7.hs b/testsuite/tests/parser/should_fail/RecordDotSyntaxFail7.hs new file mode 100644 index 0000000000..0d3d92b431 --- /dev/null +++ b/testsuite/tests/parser/should_fail/RecordDotSyntaxFail7.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE OverloadedRecordDot #-} + +module Main where + +import qualified RecordDotSyntaxA as A + +main = do + let bar = A.Foo { A.foo =1 } -- A defn. Perfectly reasonable. + print $ (bar.A.foo) -- A field selection where the field is qualified; parse error on input ‘A.foo’. |