-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[compiler-v2] Add missing ability check of receiver function type par…
…ameters Closes #14813 The first commit here demonstrates the error and improves on how we display bytecode verification errors, the 2nd fixes the issue in the compiler.
- Loading branch information
Showing
8 changed files
with
46 additions
and
95 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
third_party/move/move-compiler-v2/tests/checking/abilities/bug_14813_fun_call_ability.exp
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,12 @@ | ||
|
||
Diagnostics: | ||
error: type `V` is missing required ability `drop` | ||
┌─ tests/checking/abilities/bug_14813_fun_call_ability.move:6:9 | ||
│ | ||
6 │ self.search(key) | ||
│ ^^^^^^^^^^^^^^^^ | ||
· | ||
9 │ fun search<V: drop>(self: &Map<V>, key: u256): bool { | ||
│ - declaration of type parameter `V` | ||
│ | ||
= required by instantiating type parameter `V:drop` of function `search` |
File renamed without changes.
46 changes: 0 additions & 46 deletions
46
third_party/move/move-compiler-v2/tests/file-format-generator/bug_14813_fun_call_ability.exp
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
...arty/move/move-compiler-v2/tests/file-format-generator/bug_14813_fun_call_ability.opt.exp
This file was deleted.
Oops, something went wrong.
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