solidity/test/libyul/yulSyntaxTests/objects/code.yul
2022-04-01 23:41:18 -05:00

19 lines
369 B
Plaintext

object "A" {
code {
function f() -> offset, len {
offset := dataoffset("A")
len := datasize("A")
}
let offset, len := f()
codecopy(0, offset, len)
}
data "hello" "hello world text"
object "hello" {
code {}
}
}
// ----
// ParserError 8794: (226-233='"hello"'): Object name "hello" already exists inside the containing object.