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
if (identifierInfo.suffix != "objectName" || !m_eofVersion.has_value())
902
+
{
903
+
m_errorReporter.typeError(
904
+
1342_error,
905
+
nativeLocationOf(_identifier),
906
+
"\".objectName\" suffix is supported only for contract name identifier when compiling to EOF."
907
+
);
908
+
returnfalse;
909
+
}
910
+
}
899
911
elseif (!identifierInfo.suffix.empty())
900
912
{
901
-
m_errorReporter.typeError(7944_error, nativeLocationOf(_identifier), "The suffixes \".offset\", \".slot\" and \".length\" can only be used with variables.");
913
+
if (m_eofVersion.has_value())
914
+
{
915
+
m_errorReporter.typeError(
916
+
9479_error,
917
+
nativeLocationOf(_identifier),
918
+
"The suffixes \".offset\", \".slot\" and \".length\" can only be used with variables or the suffix \"objectName\" can be used with a contract name identifier."
919
+
);
920
+
}
921
+
else
922
+
{
923
+
m_errorReporter.typeError(
924
+
7944_error,
925
+
nativeLocationOf(_identifier),
926
+
"The suffixes \".offset\", \".slot\" and \".length\" can only be used with variables."
0 commit comments