Restrict linkersymbol builtin to object dialect of Yul

This commit is contained in:
Kamil Śliwak
2020-07-02 14:41:40 +02:00
parent b0bc747000
commit 356b9a7904
3 changed files with 30 additions and 11 deletions
@@ -0,0 +1,10 @@
contract C {
function f() public pure {
assembly {
pop(linkersymbol("contract/library.sol:L"))
}
}
}
// ----
// DeclarationError 4619: (67-79): Function not found.
// TypeError 3950: (67-105): Expected expression to evaluate to one value, but got 0 values instead.
@@ -0,0 +1,10 @@
contract C {
function f() public pure {
assembly {
function linkersymbol(a) {}
linkersymbol("contract/library.sol:L")
}
}
}
// ----