solidity/test/libsolidity/syntaxTests/inlineAssembly/assignment_from_functiontype.sol
2020-04-01 10:34:55 +02:00

10 lines
179 B
Solidity

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