solidity/test/libsolidity/syntaxTests/inlineAssembly/assignment_from_functiontype2.sol
2020-07-07 12:16:18 +02:00

11 lines
225 B
Solidity

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