summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/T13833.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T13833.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/T13833.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T13833.hs b/testsuite/tests/typecheck/should_compile/T13833.hs
new file mode 100644
index 0000000000..266b00bd60
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/T13833.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE DataKinds, KindSignatures #-}
+
+import GHC.TypeLits (Nat, Symbol)
+
+class A (n::Nat)
+instance A 0
+
+class B (s::Symbol)
+instance B "B"
+
+main :: IO ()
+main = return ()