solidity/test/libsolidity/semanticTests/constructor/constructor_arguments_external.sol

23 lines
378 B
Solidity
Raw Normal View History

contract Main {
bytes3 name;
bool flag;
constructor(bytes3 x, bool f) public {
name = x;
flag = f;
}
function getName() public returns (bytes3 ret) {
return name;
}
function getFlag() public returns (bool ret) {
return flag;
}
}
// ----
// constructor(): "abc", true
// getFlag() -> true
// getName() -> "abc"