Skip to content

Commit bce5c52

Browse files
committed
Update SameFileUnion.t.sol
1 parent a71d26d commit bce5c52

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,16 @@
1+
// SPDX-License-Identifier: UNLICENSED
2+
pragma solidity ^0.8.18;
13

4+
import "./Libs.sol";
5+
6+
contract UsesBoth {
7+
uint public x;
8+
constructor() {
9+
// used only in в creation bytecode
10+
x = LInit.f();
11+
}
12+
function y() external pure returns (uint) {
13+
// used only in deployed bytecode
14+
return LRun.g();
15+
}
16+
}

0 commit comments

Comments
 (0)