diff options
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/tc134.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/tc134.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/tc134.hs b/testsuite/tests/typecheck/should_compile/tc134.hs new file mode 100644 index 0000000000..84eb75c82f --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/tc134.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE ScopedTypeVariables #-} + +-- !!! Scoped type variables: result sig + +module Test where + +f :: Int -> Int +f x :: Int = x + +g :: Int -> Int +g x :: a = x :: a -- Here, a is a name for Int |