2019-11-06 17:06:36 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|
2020-07-02 12:38:36 +00:00
|
|
|
// DeclarationError 3927: (115-118): User-defined identifiers in inline assembly cannot contain '.'.
|
2020-06-19 00:26:46 +00:00
|
|
|
// DeclarationError 3859: (115-118): The prefix of this declaration conflicts with a declaration outside the inline assembly block.
|
2020-07-02 12:38:36 +00:00
|
|
|
// DeclarationError 3927: (140-143): User-defined identifiers in inline assembly cannot contain '.'.
|
2020-06-19 00:26:46 +00:00
|
|
|
// DeclarationError 3859: (140-143): The prefix of this declaration conflicts with a declaration outside the inline assembly block.
|