Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
307c32f5
Commit
307c32f5
authored
6 years ago
by
Pierre Loic Garoche
Browse files
Options
Downloads
Patches
Plain Diff
MPFR bug solved: typing of function argument was not properly building tuples of types.
parent
6de6bcf4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/typing.ml
+2
-2
2 additions, 2 deletions
src/typing.ml
with
2 additions
and
2 deletions
src/typing.ml
+
2
−
2
View file @
307c32f5
...
...
@@ -389,7 +389,7 @@ module Make (T: Types.S) (Expr_type_hub: EXPR_TYPE_HUB with type type_expr = T.t
else
(
type_dependent_call
env
in_main
loc
const
f
(
List
.
combine
args
targs
)
)
(* type a call with possible dependent types. [targs] is here a list of (argument, type) pairs. *)
and
type_dependent_call
env
in_main
loc
const
f
targs
=
(* Format.eprintf "Typing.type_dependent_call %s@." f; *)
...
...
@@ -494,9 +494,9 @@ module Make (T: Types.S) (Expr_type_hub: EXPR_TYPE_HUB with type type_expr = T.t
check_constant
expr
.
expr_loc
const
false
;
type_subtyping_arg
env
in_main
const
c
(* Type_predef. *)
type_bool
);
let
args_list
=
expr_list_of_expr
args
in
let
touts
=
type_appl
env
in_main
expr
.
expr_loc
const
id
args_list
in
let
targs
=
new_ty
(
Ttuple
(
List
.
map
(
fun
a
->
Expr_type_hub
.
import
a
.
expr_type
)
args_list
))
in
args
.
expr_type
<-
Expr_type_hub
.
export
targs
;
let
touts
=
type_appl
env
in_main
expr
.
expr_loc
const
id
args_list
in
expr
.
expr_type
<-
Expr_type_hub
.
export
touts
;
touts
|
Expr_fby
(
e1
,
e2
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment