summaryrefslogtreecommitdiff
path: root/testsuite/compiler/renamer/varpatt.gf
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/compiler/renamer/varpatt.gf')
-rw-r--r--testsuite/compiler/renamer/varpatt.gf13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/compiler/renamer/varpatt.gf b/testsuite/compiler/renamer/varpatt.gf
new file mode 100644
index 000000000..93bddd63e
--- /dev/null
+++ b/testsuite/compiler/renamer/varpatt.gf
@@ -0,0 +1,13 @@
+abstract varpatt = {
+
+-- this should raise error
+-- we cannot pattern match on functions
+
+cat D ;
+fun D1 : D ;
+ D2 : D ;
+
+fun d : D -> Int ;
+def d x = 1 ;
+
+} \ No newline at end of file