diff options
author | simonpj <simonpj@microsoft.com> | 2009-01-08 12:39:27 +0000 |
---|---|---|
committer | simonpj <simonpj@microsoft.com> | 2009-01-08 12:39:27 +0000 |
commit | 45d6c04639463a8ac4743c3c6aef7a5abe27e0c4 (patch) | |
tree | 7c6e697b8cf4ee6f30da22938d1955b651f7058e /testsuite/tests/ghc-regress/rename/should_compile | |
parent | 03440aebe91b7a73e326dcbd939efc47f55f6128 (diff) | |
download | haskell-45d6c04639463a8ac4743c3c6aef7a5abe27e0c4.tar.gz |
Test Trac #2914
Diffstat (limited to 'testsuite/tests/ghc-regress/rename/should_compile')
-rw-r--r-- | testsuite/tests/ghc-regress/rename/should_compile/T2914.hs | 14 | ||||
-rw-r--r-- | testsuite/tests/ghc-regress/rename/should_compile/all.T | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-regress/rename/should_compile/T2914.hs b/testsuite/tests/ghc-regress/rename/should_compile/T2914.hs new file mode 100644 index 0000000000..788efef59d --- /dev/null +++ b/testsuite/tests/ghc-regress/rename/should_compile/T2914.hs @@ -0,0 +1,14 @@ +{-# LANGUAGE TypeFamilies, RecordWildCards #-} +module AssocWildCards where + +class FooClass a where + data FooType a + +instance FooClass Int where + data FooType Int = FooInt { fooIntVal :: Int } + +fooInt :: Int -> FooType Int +fooInt fooIntVal = FooInt{..} + +fromFooInt :: FooType Int -> Int +fromFooInt (FooInt{..}) = fooIntVal diff --git a/testsuite/tests/ghc-regress/rename/should_compile/all.T b/testsuite/tests/ghc-regress/rename/should_compile/all.T index 61b24da4ee..82510b4ce8 100644 --- a/testsuite/tests/ghc-regress/rename/should_compile/all.T +++ b/testsuite/tests/ghc-regress/rename/should_compile/all.T @@ -115,6 +115,7 @@ test('T2205', normal, compile, ['']) test('2334', normal, compile, ['']) test('T2506', normal, compile, ['']) +test('T2914', normal, compile, ['']) test('timing001', normal, compile, ['']) test('timing002', normal, compile, ['']) |