Skip to content

Commit f1be7e1

Browse files
authored
Merge pull request #12652 from ethereum/moveTest
Move stray semantics test to proper directory.
2 parents 4aac962 + 290b932 commit f1be7e1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
contract A {
2-
uint public x;
2+
uint public x = 2;
33
constructor(uint) {}
4-
function f() public { x = 4; }
4+
function f() public returns(uint) { x = 4; }
55
}
66
contract B is A {
77
constructor() A(f()) {}
88
}
99
// ====
10-
// compileViaYul: also
10+
// compileViaYul: false
1111
// ----
1212
// x() -> 4
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
contract A {
2+
uint public x = 2;
3+
constructor(uint) {}
4+
function f() public returns(uint) { x = 4; }
5+
}
6+
contract B is A {
7+
constructor() A(f()) {}
8+
}
9+
// ====
10+
// compileViaYul: true
11+
// ----
12+
// x() -> 2

0 commit comments

Comments
 (0)