You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've documented this bug in this repository, but here are the details:
issue1524.sol:
// SPDX-License-Identifier: UNLICENSEDpragma solidity^0.8.0;
/** * The following example is taken from solidity docs: * https://docs.soliditylang.org/en/v0.8.17/natspec-format.html#documentation-example *//// @title A simulator for trees/// @author Larry A. Gardner/// @notice You can use this contract for only the most basic simulation/// @dev All function calls are currently implemented without side effects/// @custom:experimental This is an experimental contract.libraryIssue1524 {
}
Running solang fails
$ solang compile --target solana issue1524.sol
error: tag '@custom:experimental' is not valid for contract
┌─ /Users/benku/Playground/issue1524.sol:13:6
│
13 │ /// @custom:experimental This is an experimental contract.
│ ^^^^^^^^^^^^^^^^^^^^
solang version v0.3.0
revision: "70af554c42748009e414e6263dd4607fb380e5dc"
The text was updated successfully, but these errors were encountered:
seanyoung
added a commit
to seanyoung/solang
that referenced
this issue
Sep 14, 2023
Describe the bug
The Solidity docs describe NatSpec which allows annotations of the form
"@custom:<name>"
.I've documented this bug in this repository, but here are the details:
issue1524.sol
:Running solang fails
solang version v0.3.0
revision: "70af554c42748009e414e6263dd4607fb380e5dc"
The text was updated successfully, but these errors were encountered: