diff options
Diffstat (limited to 'testsuite/tests/numeric/should_compile/T14170.hs')
-rw-r--r-- | testsuite/tests/numeric/should_compile/T14170.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/numeric/should_compile/T14170.hs b/testsuite/tests/numeric/should_compile/T14170.hs new file mode 100644 index 0000000000..b7e854d805 --- /dev/null +++ b/testsuite/tests/numeric/should_compile/T14170.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE TypeApplications #-} +{-# LANGUAGE TypeInType #-} + +module NatVal where + +import Data.Proxy +import GHC.TypeLits + +-- test that Nat type literals are statically converted into Integer literals + +foo :: Integer +foo = natVal $ Proxy @0 |