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

fix(compiler): Fix nested abilities [fixes LNG-220] #852

Merged
merged 7 commits into from
Aug 22, 2023

Conversation

InversionSpaces
Copy link
Contributor

No description provided.

@linear
Copy link

linear bot commented Aug 21, 2023

LNG-220 Nested ability passing compiles with error

aqua Main

export main

ability Simple:
    arrow(x: i8) -> bool

ability Complex:
    simple: Simple

func foo{Complex}() -> bool:
    <- Complex.simple.arrow(42)

func main() -> bool:
    closure = (x: i8) -> bool:
        <- x == 42
    MySimple = Simple(arrow = closure)
    MyComplex = Complex(simple = MySimple)
    <- foo{MyComplex}()

produces error log while compiling

2023.08.11 13:46:58 CallArrowRawInliner.scala [ERROR] Inlining, cannot find arrow Complex.simple.arrow, available:  and vars: PARTICLE_TTL, PARTICLE_TIMESTAMP, nil, INIT_PEER_ID, HOST_PEER_ID, LAST_ERROR

@InversionSpaces InversionSpaces added the e2e Run e2e workflow label Aug 21, 2023
@InversionSpaces InversionSpaces marked this pull request as ready for review August 22, 2023 09:20
@InversionSpaces InversionSpaces merged commit bf0b51f into main Aug 22, 2023
@InversionSpaces InversionSpaces deleted the fix/nested-abilities branch August 22, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants