Move stray semantics test to proper directory.

This commit is contained in:
Daniel Kirchner 2022-02-10 13:38:17 +01:00
parent 4aac962155
commit 290b9326e3
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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