solidity/test/libsolidity/syntaxTests/inlineAssembly/shadowing/qualified_names.sol
2022-04-01 23:41:18 -05:00

15 lines
435 B
Solidity

contract D {
uint constant a;
}
contract C {
function f() public pure {
assembly {
let D.a := 1
let D.b := 1 // shadowing the prefix only is also an error
}
}
}
// ----
// DeclarationError 3927: (115-118='D.a'): User-defined identifiers in inline assembly cannot contain '.'.
// DeclarationError 3927: (140-143='D.b'): User-defined identifiers in inline assembly cannot contain '.'.