mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixed codestyle.
This commit is contained in:
parent
84918fb01e
commit
c6e73707c7
@ -3398,7 +3398,8 @@ bool TypeChecker::visit(MemberAccess const& _memberAccess)
|
||||
auto accessedStructType = dynamic_cast<StructType const*>(magicType->typeArgument());
|
||||
solAssert(accessedStructType, "typehash requested on a non struct type.");
|
||||
|
||||
if (accessedStructType->recursive()) {
|
||||
if (accessedStructType->recursive())
|
||||
{
|
||||
m_errorReporter.typeError(
|
||||
9298_error,
|
||||
_memberAccess.location(),
|
||||
|
@ -1,6 +1,6 @@
|
||||
contract C {
|
||||
struct S {
|
||||
mapping (uint256 => uint256) x;
|
||||
mapping (uint256 => uint256) x;
|
||||
}
|
||||
|
||||
bytes32 h = type(S).typehash;
|
||||
|
@ -1,6 +1,6 @@
|
||||
contract C {
|
||||
struct S {
|
||||
S[] s;
|
||||
struct S {
|
||||
S[] s;
|
||||
}
|
||||
|
||||
bytes32 h = type(S).typehash;
|
||||
|
@ -4,8 +4,8 @@ contract A {
|
||||
}
|
||||
}
|
||||
contract C {
|
||||
struct S {
|
||||
A.S s;
|
||||
struct S {
|
||||
A.S s;
|
||||
}
|
||||
|
||||
bytes32 h = type(S).typehash;
|
||||
|
Loading…
Reference in New Issue
Block a user