mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
|
object "A" {
|
||
|
code {
|
||
|
pop(dataoffset(".other"))
|
||
|
pop(datasize(".other"))
|
||
|
pop(datasize("B..other"))
|
||
|
// "B.other" does not exist.
|
||
|
pop(datasize("B.other"))
|
||
|
// ".metadata" is not accessible by definition
|
||
|
pop(dataoffset(".metadata"))
|
||
|
pop(datasize(".metadata"))
|
||
|
pop(dataoffset("B..metadata"))
|
||
|
pop(datasize("B..metadata"))
|
||
|
}
|
||
|
|
||
|
object "B" {
|
||
|
code {}
|
||
|
data ".metadata" "Hello, World!"
|
||
|
data ".other" "Hello, World2!"
|
||
|
}
|
||
|
|
||
|
data ".metadata" "Hello, World!"
|
||
|
data ".other" "Hello, World2!"
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError 3517: (41-49): Unknown data object ".other".
|
||
|
// TypeError 3517: (69-77): Unknown data object ".other".
|
||
|
// TypeError 3517: (97-107): Unknown data object "B..other".
|
||
|
// TypeError 3517: (160-169): Unknown data object "B.other".
|
||
|
// TypeError 3517: (242-253): Unknown data object ".metadata".
|
||
|
// TypeError 3517: (273-284): Unknown data object ".metadata".
|
||
|
// TypeError 3517: (306-319): Unknown data object "B..metadata".
|
||
|
// TypeError 3517: (339-352): Unknown data object "B..metadata".
|