solidity-language-server 0.1.36

A fast Solidity language server powered by solc and Foundry
Documentation
1
2
3
4
5
6
7
8
9
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.26;

// Error 9559: Free functions cannot be payable.
// Fix: remove the `payable` modifier.

function freePayable(uint256 x) payable returns (uint256) {
    return x;
}