-
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.
- Loading branch information
1 parent
2940f12
commit 0f3224a
Showing
5 changed files
with
15 additions
and
24 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
16 changes: 5 additions & 11 deletions
16
third_party/move/move-compiler/tests/move_check/typing/lambda_returning_lambda2.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 |
---|---|---|
@@ -1,12 +1,6 @@ | ||
error[E04007]: incompatible types | ||
┌─ tests/move_check/typing/lambda_returning_lambda2.move:10:9 | ||
│ | ||
3 │ public inline fun foreach_caller2<T>(_v: &vector<T>, _action: ||(u64)) { | ||
│ ----- Expected: 'u64' | ||
· | ||
10 │ foreach_caller2(&v, ||(|e| sum = sum + *e)) // expected to be not implemented | ||
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
│ │ │ | ||
│ │ Given: '|&{integer}|()' | ||
│ Invalid call of '0x8675309::M::foreach_caller2'. Invalid argument for parameter '_action' | ||
warning[W09003]: unused assignment | ||
┌─ tests/move_check/typing/lambda_returning_lambda2.move:9:13 | ||
│ | ||
9 │ let sum = 0; | ||
│ ^^^ Unused assignment or binding for local 'sum'. Consider removing, replacing with '_', or prefixing with '_' (e.g., '_sum') | ||
|