Merge pull request #9293 from ethereum/yul-restrict-linkersymbol-to-object-dialect

[Yul] Restrict `linkersymbol` to object dialect and add missing changelog entries
This commit is contained in:
Daniel Kirchner
2020-07-03 11:37:21 +02:00
committed by GitHub
4 changed files with 32 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")
}
}
}
// ----