Don't allow uppercase pattern variables
This commit is contained in:
10
tests/LowerPatVar.newt.fail
Normal file
10
tests/LowerPatVar.newt.fail
Normal file
@@ -0,0 +1,10 @@
|
||||
*** Process tests/LowerPatVar.newt
|
||||
module Prelude
|
||||
module LowerPatVar
|
||||
ERROR at tests/LowerPatVar.newt:6:6--6:8: ZZ not in scope
|
||||
|
||||
foo : Nat × Nat → Nat
|
||||
foo (ZZ , y) = Z
|
||||
^^
|
||||
|
||||
ERROR at tests/LowerPatVar.newt:1:1--1:1: Compile failed
|
||||
Reference in New Issue
Block a user