mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Disallow access to functions from inline assembly.
This commit is contained in:
@@ -5,3 +5,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (72-73): Access to functions is not allowed in inline assembly.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
contract C {
|
||||
function f() public pure {}
|
||||
constructor() public {
|
||||
assembly {
|
||||
let x := f
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (112-113): Access to functions is not allowed in inline assembly.
|
||||
Reference in New Issue
Block a user