Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with Library's using {f} for ... #1525

Closed
BenTheKush opened this issue Sep 14, 2023 · 0 comments · Fixed by #1528
Closed

Error with Library's using {f} for ... #1525

BenTheKush opened this issue Sep 14, 2023 · 0 comments · Fixed by #1528

Comments

@BenTheKush
Copy link
Contributor

BenTheKush commented Sep 14, 2023

Describe the bug
There is a compilation error/parse error for code that compiles for solc

To Reproduce
I've added a minimized version of this bug to this repository. I'm reproducing it here for convenience.

issue1525.sol:

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.0;

library Lib {
    using {f} for int256;

    function f(int256 a) internal pure returns (int256) {
        return a;
    }
}

Running

$ solang compile --target solana issue1525.sol
error: 'f' not found
  ┌─ /Users/benku/Playground/issue1525.sol:5:12
  │
5 │     using {f} for int256;
  │            ^

$ solc issue1525.sol
Compiler run successful, no output requested.

Ran with solang 0.3.0

seanyoung added a commit to seanyoung/solang that referenced this issue Sep 14, 2023
seanyoung added a commit to seanyoung/solang that referenced this issue Sep 15, 2023
seanyoung added a commit to seanyoung/solang that referenced this issue Sep 19, 2023
seanyoung added a commit to seanyoung/solang that referenced this issue Sep 20, 2023
seanyoung added a commit to seanyoung/solang that referenced this issue Sep 21, 2023
seanyoung added a commit that referenced this issue Sep 21, 2023
Fixes #1525

Signed-off-by: Sean Young <sean@mess.org>
stainless-app bot pushed a commit to 2lambda123/hyperledger-solang that referenced this issue Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant