a;
uint256[] b;
}
Foo public foo;
this will create a view function foo() that will return a but not b. but if you try to create a function
function foo() external view returns (Foo memory) {
return foo;
}
the compiler will not accept it because the name foo already is used for the variable
can you somehow create a view function and a variable with the same name and have the view function return b?
it won't work since if you have public some and have public func some this will cause collisions
Yeah but my variable isn't public
Обсуждают сегодня