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

Various bugs, need to be reduced and added as tests #34

Open
xarvh opened this issue Sep 15, 2024 · 0 comments
Open

Various bugs, need to be reduced and added as tests #34

xarvh opened this issue Sep 15, 2024 · 0 comments

Comments

@xarvh
Copy link
Owner

xarvh commented Sep 15, 2024

---------------------> Crashes on "hash" being undeclared!?

inferLambdaSets = #as fn Text: fn Text: Result Text OutWithLambdaSets =
fn targetName:
fn code:

inferRootDef targetName code
>> onOk fn def:

'ok
    {
    , lambdaSetConstraints =
        def.lambdaSetConstraints
    , type =
        def.returnType.raw
        >> TA.normalizeType @hash __
        >> TA.stripTypePos
    }

--------------------> problem inferring uniqueness!?

        a =
            fn bool, fun1, fun2, meta:
                if bool then
                    meta fun1
                else if 'false then
                    meta fun2
                else if 'true then
                    meta fn x: x
                else
                    meta fn x: x

        p = fn x: x
        q = fn x: x
        m = fn f: f 1

        b =
            a 'false p q m

----------------------> problem with circularity!?

        a =
            fn bool, fun1, fun2, meta:
                if bool then
                    meta fun1
                else if 'false then
                    meta fun2
                else if 'true then
                    meta fn x: x
                else
                    meta fn x: x

        p = fn x: x
        q = fn x: x
        m = fn f: f f

        b =
            a 'false p q m
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

No branches or pull requests

1 participant