You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Changelog.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
Language Features:
4
4
* General: Add a builtin that computes the base slot of a storage namespace using the `erc7201` formula from ERC-7201.
5
+
* General: Allow ``constant`` keyword for composite types (structs, arrays, function pointers) and as a data location for internal function parameters.
5
6
6
7
Compiler Features:
7
8
* Commandline Interface: Disallow selecting the deprecated assembly input mode that was only accessible via `--assemble` instead of treating it as equivalent to `--strict-assembly`.
m_errorReporter.fatalTypeError(9259_error, _variable.location(), "Only constants of value type and byte array type are implemented.");
558
+
m_errorReporter.fatalTypeError(9259_error, _variable.location(), "Constants of this type are not supported. Only value types, arrays, structs, and byte/string types without mappings are allowed.");
559
+
if (!isByteArrayOrString)
560
+
{
561
+
if (auto ref = dynamic_cast<ReferenceType const*>(type))
562
+
type = TypeProvider::withLocation(ref, DataLocation::Constant, false);
0 commit comments