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

11 lines
227 B
Solidity
Raw Normal View History

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