-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(codegen): wrap more non-Lvalues into
_not_mut
functions (#683)
Also, some renames: src -> selfTyRef, t -> selfTy, ff -> methodDescr
- Loading branch information
1 parent
5d470b3
commit 1e616db
Showing
6 changed files
with
49 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
"langle", | ||
"lparen", | ||
"lvalue", | ||
"lvalues", | ||
"masterchain", | ||
"maxint", | ||
"minmax", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
struct Foo { x : Int } | ||
|
||
extends mutates fun inc(self: Int) { self += 1 } | ||
|
||
const GlobalConst: Int = 42; | ||
|
||
contract MutatingMethodOnNonLvalues { | ||
const ContractConst: Int = 43; | ||
|
||
receive("foo") { | ||
41.inc(); | ||
GlobalConst.inc(); | ||
self.ContractConst.inc(); | ||
Foo {x: 44}.x.inc(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters