forked from GitHub/gf-core
some work on evaluation with abstract expressions in PGF
This commit is contained in:
5
testsuite/update/ArrityCheck.gf
Normal file
5
testsuite/update/ArrityCheck.gf
Normal file
@@ -0,0 +1,5 @@
|
||||
abstract ArrityCheck = {
|
||||
fun f : Int -> Int -> Int ;
|
||||
def f 0 = \x -> x ;
|
||||
f 1 1 = 0 ;
|
||||
}
|
||||
1
testsuite/update/ArrityCheck.gfs
Normal file
1
testsuite/update/ArrityCheck.gfs
Normal file
@@ -0,0 +1 @@
|
||||
i testsuite\update\ArrityCheck.gf
|
||||
8
testsuite/update/ArrityCheck.gfs.gold
Normal file
8
testsuite/update/ArrityCheck.gfs.gold
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
|
||||
|
||||
C:\gf_2\testsuite\update\ArrityCheck.gf:6:1: cannot unify the informations
|
||||
|
||||
fun f : Int -> Int -> Int ;
|
||||
|
||||
Reference in New Issue
Block a user