Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
8f63f467
Commit
8f63f467
authored
Jun 04, 2014
by
Julien Lopez
Browse files
codomain done based on tlv
[TESTS][LAMBDA] Add a test on comp of sigmas
parent
7655fee1
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/lambda/src/lambdaTests.ml
View file @
8f63f467
...
...
@@ -491,6 +491,12 @@ let tests_eval = "CDuce runtime tests (Typed -> Lambda -> Value)" >:::
} })))"
(
run_test_eval
"(((fun f x : 'A : 'A -> x)[{A/Int}])[{A/String}])[{A/Int}]"
);
assert_equal
~
msg
:
"Test CDuce.runtime.poly.multicomp.2 failed"
~
printer
:
(
fun
x
->
x
)
"Abstraction((`$A,`$A),Sel(1,(`$A -> `$A),Comp(Comp({ { `$A = `$B
} },{ { `$B = `$A } }),{ { `$A = `$B
} })))"
(
run_test_eval
"(((fun f x : 'A : 'A -> x)[{A/'B}])[{B/'A}])[{A/'B}]"
);
);
]
...
...
types/types.ml
View file @
8f63f467
...
...
@@ -3240,8 +3240,8 @@ module Tallying = struct
let
codomain
ll
=
List
.
fold_left
(
fun
acc
e
->
CS
.
E
.
fold
(
fun
v
_
acc
->
Var
.
Set
.
add
v
acc
CS
.
E
.
fold
(
fun
_
v
acc
->
Var
.
Set
.
union
v
.
toplvars
.
TLV
.
f
v
acc
)
e
acc
)
Var
.
Set
.
empty
ll
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment