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

11 lines
227 B
Solidity

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