fixed codestyle.

This commit is contained in:
Saw-mon & Natalie 2023-05-21 16:59:40 +01:00 committed by Anton Bukov
parent 84918fb01e
commit c6e73707c7
4 changed files with 7 additions and 6 deletions

View File

@ -3398,7 +3398,8 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
auto accessedStructType = dynamic_cast<StructType const*>(magicType->typeArgument()); auto accessedStructType = dynamic_cast<StructType const*>(magicType->typeArgument());
solAssert(accessedStructType, "typehash requested on a non struct type."); solAssert(accessedStructType, "typehash requested on a non struct type.");
if (accessedStructType->recursive()) { if (accessedStructType->recursive())
{
m_errorReporter.typeError( m_errorReporter.typeError(
9298_error, 9298_error,
_memberAccess.location(), _memberAccess.location(),

View File

@ -1,6 +1,6 @@
contract C { contract C {
struct S { struct S {
mapping (uint256 => uint256) x; mapping (uint256 => uint256) x;
} }
bytes32 h = type(S).typehash; bytes32 h = type(S).typehash;

View File

@ -1,6 +1,6 @@
contract C { contract C {
struct S { struct S {
S[] s; S[] s;
} }
bytes32 h = type(S).typehash; bytes32 h = type(S).typehash;

View File

@ -4,8 +4,8 @@ contract A {
} }
} }
contract C { contract C {
struct S { struct S {
A.S s; A.S s;
} }
bytes32 h = type(S).typehash; bytes32 h = type(S).typehash;