mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-03 19:15:26 -07:00
more friendly error message when renaming patterns
This commit is contained in:
1 parent
6de94f5300
commit
8f2fb82750
7 files changed
+55
-9
No files matched your search
@@ -0,0 +1,14 @@
|
||||
abstract funpatt = {
|
||||
|
||||
-- this should raise error
|
||||
-- we cannot pattern match on functions
|
||||
|
||||
cat D ;
|
||||
fun D1 : D ;
|
||||
D2 : D ;
|
||||
|
||||
fun d : D -> Int ;
|
||||
def d D1 = 1 ;
|
||||
d D2 = 2 ;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user