Skip to content

BUG: Can't use imported function if extern function defined (even if not exported) #34

@alinalihassan

Description

@alinalihassan

It gives a weird bug where it says it doesn't find the function. Example:

# math.les
def extern sin(x: float) -> float

export def sin(x: float) -> float
    return sin(x)
# main.les
import math

math.sin(1.0)

It gives an error: Function sin not in current scope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions