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

c command is broken on a variety of inputs #1397

Open
scolsen opened this issue Mar 15, 2022 · 1 comment
Open

c command is broken on a variety of inputs #1397

scolsen opened this issue Mar 15, 2022 · 1 comment
Labels

Comments

@scolsen
Copy link
Contributor

scolsen commented Mar 15, 2022

some examples:

鲤 (register foo Int)
鲤 (c foo)
I didn’t understand the form `external` at no info.

Is it valid? at REPL:4:15.

Traceback:
  (c foo) at REPL:5:1.
 at REPL:4:15.

Traceback:
  (c foo) at REPL:5:1.
鲤 (deftype Foo [])
鲤 (c Foo)
carp: Symbol missing info: XObj {xobjObj = Sym Foo.init (LookupGlobal CarpLand AFunction), xobjInfo = Nothing, xobjTy = Just (Fn [] Foo)}
CallStack (from HasCallStack):
  error, called at src/Emit.hs:227:53 in CarpHask-0.5.3.0-CGthP5oJU3yJPpqrHNinP3:Emit
鲤 (deftype Foo)
鲤 (c Foo)
I couldn’t find the symbol 'Foo.init' at no info.

Maybe you forgot to define it?

Traceback:
  (c Foo) at REPL:2:1.


Traceback:
  (c Foo) at REPL:2:1.
@scolsen scolsen added the bug label Mar 15, 2022
@scolsen
Copy link
Contributor Author

scolsen commented Mar 15, 2022

Note that it also emits incorrect C for stuff defined in modules (the prefix isn't present)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant