mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 08:32:50 -06:00
more friendly error message when renaming patterns
This commit is contained in:
13
testsuite/compiler/renamer/varpatt.gf
Normal file
13
testsuite/compiler/renamer/varpatt.gf
Normal file
@@ -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 ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user