solang icon indicating copy to clipboard operation
solang copied to clipboard

[ICE]: The array contains a function type variable, which causes a compilation error.

Open Subway2023 opened this issue 10 months ago • 0 comments

Version: v0.3.3: Atlantis

contract FunctionArray {
    function(uint256) external returns (uint256)[] public functionArray;
}
solang compile --target solana test.sol

thread 'main' panicked at 'internal error: entered unreachable code: Type should not be in the IDL', src/abi/anchor.rs:439:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Subway2023 avatar Mar 05 '25 08:03 Subway2023