mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Allow constants with the same name and value (#462)
Co-authored-by: legaii <jgates.ardux@gmail.com>
This commit is contained in:
parent
2512f0287b
commit
3b1d33f543
2 changed files with 30 additions and 6 deletions
15
crypto/func/test/co2.fc
Normal file
15
crypto/func/test/co2.fc
Normal file
|
@ -0,0 +1,15 @@
|
|||
const int x = 5;
|
||||
const slice s = "abacaba";
|
||||
const int y = 3;
|
||||
const slice s = "abacaba";
|
||||
const int x = 5;
|
||||
const int z = 4, z = 4;
|
||||
|
||||
int sdeq (slice s1, slice s2) asm "SDEQ";
|
||||
|
||||
() main() {
|
||||
throw_unless(101, x == 5);
|
||||
throw_unless(102, y == 3);
|
||||
throw_unless(103, z == 4);
|
||||
throw_unless(104, sdeq(s, "abacaba"));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue