Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
1fdb3046
Commit
1fdb3046
authored
13 years ago
by
Régis Blanc
Browse files
Options
Downloads
Patches
Plain Diff
Type of lets should be based on their body, not their id
parent
05156cb2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/scala/leon/purescala/Trees.scala
+2
-2
2 additions, 2 deletions
src/main/scala/leon/purescala/Trees.scala
with
2 additions
and
2 deletions
src/main/scala/leon/purescala/Trees.scala
+
2
−
2
View file @
1fdb3046
...
...
@@ -45,14 +45,14 @@ object Trees {
/* Like vals */
case
class
Let
(
binder
:
Identifier
,
value
:
Expr
,
body
:
Expr
)
extends
Expr
{
binder
.
markAsLetBinder
val
et
=
b
inder
.
getType
val
et
=
b
ody
.
getType
if
(
et
!=
Untyped
)
setType
(
et
)
}
//same as let, buf for mutable variable declaration
case
class
LetVar
(
binder
:
Identifier
,
value
:
Expr
,
body
:
Expr
)
extends
Expr
{
binder
.
markAsLetBinder
val
et
=
b
inder
.
getType
val
et
=
b
ody
.
getType
if
(
et
!=
Untyped
)
setType
(
et
)
}
...
...
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