-
Notifications
You must be signed in to change notification settings - Fork 6.3k
[BREAKING] Throw error if function parameters (return) use default data location. #4014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
8f8f79d
dbd3cbc
022b0d7
c1623e6
3cb1bc1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
…t data location.
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| library C { | ||
| function f(uint[]) private pure {} | ||
| } | ||
| // ---- | ||
| // Warning: (27-33): Parameter is declared as memory. Use an explicit "memory" keyword to silence this warning. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| library C { | ||
| function f() private pure returns(uint[]) {} | ||
| } | ||
| // ---- | ||
| // Warning: (50-56): Parameter is declared as memory. Use an explicit "memory" keyword to silence this warning. | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next release will be version 0.5.0, so there's no need [anymore] to optionally check for this, is it?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, since this is a breaking change, the warning should be turned into an error (and therefor this check can be removed.)