-
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: do not allow variable width integer map key types (#1276)
- Loading branch information
1 parent
da4b8d8
commit 06cb9f4
Showing
10 changed files
with
169 additions
and
40 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
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
8 changes: 8 additions & 0 deletions
8
src/types/test-failed/wf-type-contract-incorrect-map-key-annotation-coins.tact
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,8 @@ | ||
primitive Int; | ||
primitive Address; | ||
trait BaseTrait {} | ||
|
||
contract Test { | ||
m: map<Int as coins, Address> = emptyMap(); | ||
} | ||
|
8 changes: 8 additions & 0 deletions
8
src/types/test-failed/wf-type-contract-incorrect-map-key-annotation-varint16.tact
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,8 @@ | ||
primitive Int; | ||
primitive Address; | ||
trait BaseTrait {} | ||
|
||
contract Test { | ||
m: map<Int as varint16, Address> = emptyMap(); | ||
} | ||
|
8 changes: 8 additions & 0 deletions
8
src/types/test-failed/wf-type-contract-incorrect-map-key-annotation-varint32.tact
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,8 @@ | ||
primitive Int; | ||
primitive Address; | ||
trait BaseTrait {} | ||
|
||
contract Test { | ||
m: map<Int as varint32, Address> = emptyMap(); | ||
} | ||
|
8 changes: 8 additions & 0 deletions
8
src/types/test-failed/wf-type-contract-incorrect-map-key-annotation-varuint16.tact
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,8 @@ | ||
primitive Int; | ||
primitive Address; | ||
trait BaseTrait {} | ||
|
||
contract Test { | ||
m: map<Int as varuint16, Address> = emptyMap(); | ||
} | ||
|
8 changes: 8 additions & 0 deletions
8
src/types/test-failed/wf-type-contract-incorrect-map-key-annotation-varuint32.tact
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,8 @@ | ||
primitive Int; | ||
primitive Address; | ||
trait BaseTrait {} | ||
|
||
contract Test { | ||
m: map<Int as varuint32, Address> = emptyMap(); | ||
} | ||
|