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

into-iter bug #1198

Open
stylewarning opened this issue Aug 8, 2024 · 1 comment
Open

into-iter bug #1198

stylewarning opened this issue Aug 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@stylewarning
Copy link
Member

COALTON-USER> (coalton-codegen
                (define (f)
                  (iter:into-iter iter:empty)))

gives

Internal coalton bug: Scheme ∀ :A. (:A → (ITERATOR #T121243)) should not have any free type variables.

If you are seeing this, please file an issue on Github.
   [Condition of type COALTON-IMPL/UTIL:COALTON-BUG]

Restarts:
 0: [RETRY] Retry SLIME REPL evaluation request.
 1: [*ABORT] Return to SLIME's top level.
 2: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {1001378003}>)

Backtrace:
  0: (COALTON-IMPL/UTIL:COALTON-BUG "Scheme ~S should not have any free type variables." ∀ :A. (:A → (ITERATOR #T121243)))
      Locals:
        ARGS = (∀ :A. (:A → (ITERATOR #T121243)))
        REASON = "Scheme ~S should not have any free type variables."
  1: (COALTON-IMPL/TYPECHECKER/TOPLEVEL:TOPLEVEL-DEFINE (#S(COALTON-IMPL/PARSER/TOPLEVEL:TOPLEVEL-DEFINE :NAME #S(COALTON-IMPL/PARSER/EXPRESSION:NODE-VARIABLE :SOURCE # :NAME F) :PARAMS (#1=_) :ORIG-PARAMS..
      Locals:
        COALTON-IMPL/TYPECHECKER/DEFINE::DECLARES = COMMON-LISP:NIL
        COALTON-IMPL/TYPECHECKER/DEFINE::DEFINES = (#S(COALTON-IMPL/PARSER/TOPLEVEL:TOPLEVEL-DEFINE ..))
        COALTON-IMPL/TYPECHECKER/DEFINE::ENV = #<COALTON-IMPL/TYPECHECKER/ENVIRONMENT:ENVIRONMENT {1023B93AE3}>
        COALTON-IMPL/TYPECHECKER/DEFINE::FILE = #S(SOURCE-ERROR/ERROR:FILE :STREAM #<SB-IMPL::STRING-INPUT-STREAM {D68EE93}> :NAME "COALTON-TOPLEVEL (NIL)")
@stylewarning stylewarning added the bug Something isn't working label Aug 8, 2024
@stylewarning
Copy link
Member Author

Fix merged, needs a test case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant