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

11 lines
225 B
Solidity
Raw Normal View History

contract C {
function f() public pure {}
2020-06-23 12:14:24 +00:00
constructor() {
assembly {
let x := f
}
}
}
// ----
2020-06-23 12:14:24 +00:00
// DeclarationError 2025: (105-106): Access to functions is not allowed in inline assembly.