mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Move stray semantics test to proper directory.
This commit is contained in:
parent
4aac962155
commit
290b9326e3
@ -1,12 +1,12 @@
|
||||
contract A {
|
||||
uint public x;
|
||||
uint public x = 2;
|
||||
constructor(uint) {}
|
||||
function f() public { x = 4; }
|
||||
function f() public returns(uint) { x = 4; }
|
||||
}
|
||||
contract B is A {
|
||||
constructor() A(f()) {}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// compileViaYul: false
|
||||
// ----
|
||||
// x() -> 4
|
@ -0,0 +1,12 @@
|
||||
contract A {
|
||||
uint public x = 2;
|
||||
constructor(uint) {}
|
||||
function f() public returns(uint) { x = 4; }
|
||||
}
|
||||
contract B is A {
|
||||
constructor() A(f()) {}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: true
|
||||
// ----
|
||||
// x() -> 2
|
Loading…
Reference in New Issue
Block a user