solidity/test/libsolidity/syntaxTests/inlineAssembly/assignment_from_functiontype.sol

10 lines
184 B
Solidity

contract C {
function f() public pure {
assembly {
let x := f
}
}
}
// ----
// DeclarationError 2025: (72-73): Access to functions is not allowed in inline assembly.