diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2017-02-22 21:59:59 -0800 |
---|---|---|
committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2017-02-23 15:16:02 -0800 |
commit | 8f8016a5cb006fe14e1058c01a215b90e8435cc8 (patch) | |
tree | c188df8556fac0d451e8b0d54bf6b78d45f10fc3 /testsuite/tests/backpack/should_compile/T13323.bkp | |
parent | 39d926cd353f203c6dfa2c106179946fa2615d45 (diff) | |
download | haskell-8f8016a5cb006fe14e1058c01a215b90e8435cc8.tar.gz |
Include OverloadedRecordFields selectors in NameShape.
Summary:
Fixes #13323.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate
Reviewers: bgamari, austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D3175
Diffstat (limited to 'testsuite/tests/backpack/should_compile/T13323.bkp')
-rw-r--r-- | testsuite/tests/backpack/should_compile/T13323.bkp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/backpack/should_compile/T13323.bkp b/testsuite/tests/backpack/should_compile/T13323.bkp new file mode 100644 index 0000000000..70a1ccf89c --- /dev/null +++ b/testsuite/tests/backpack/should_compile/T13323.bkp @@ -0,0 +1,17 @@ +{-# LANGUAGE DuplicateRecordFields #-} +unit p where + signature A where + data A = A { foo :: Int } + data B = B { foo :: Bool } + module P where + import A + x :: A -> Int + x = foo +unit q where + module A where + data A = A { foo :: Int } + data B = B { foo :: Bool } +unit r where + dependency p[A=q:A] + module R where + import P |