solidity/test/libsolidity/semanticTests/constructor/constructor_arguments_external.sol
2020-07-07 12:16:18 +02:00

24 lines
401 B
Solidity

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