mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
233 B
Solidity
16 lines
233 B
Solidity
|
==== Source: a ====
|
||
|
contract A
|
||
|
{
|
||
|
uint constant a = 42;
|
||
|
}
|
||
|
==== Source: b ====
|
||
|
import {A as b} from "a";
|
||
|
contract B {
|
||
|
function f() public pure {
|
||
|
assembly {
|
||
|
let A := 1
|
||
|
let A.b := 2
|
||
|
}
|
||
|
}
|
||
|
}
|