Code Monkey home page Code Monkey logo

Comments (1)

dhil avatar dhil commented on September 13, 2024

This bug persists after merging with sessions branch. Though, as expected the error message now names the type variables:

<stdin>:2: Type error: The codomain of continuation `k' has type
    `a'
but a type compatible with
    `a'
was expected.
In expression: shallowhandle(m) { 
        case Op(k) -> h1(fun() { k(2) }) 
        case Return(x) -> x 
     }.

Oddly, it says that a isn't a.

See stack trace:

Raised at file "typeSugar.ml", line 374, characters 22-58
Called from file "typeSugar.ml", line 3033, characters 6-80
Called from file "list.ml", line 88, characters 24-34
Called from file "typeSugar.ml", line 3031, characters 9-268
Called from file "typeSugar.ml", line 2818, characters 20-83
Called from file "typeSugar.ml", line 3167, characters 21-68
Called from file "typeSugar.ml", line 3401, characters 37-104
Called from file "list.ml", line 88, characters 24-34
Called from file "typeSugar.ml", line 3399, characters 4-408
Called from file "typeSugar.ml", line 3587, characters 36-64
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-345
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-417
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-497
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-583
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-657
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-733
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-815
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-899
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 8-977
Called from file "utility.ml" (inlined), line 16, characters 23-26
Called from file "frontend.ml", line 67, characters 6-1023
Called from file "links.ml", line 280, characters 34-87
Called from file "links.ml", line 222, characters 20-31
Called from file "camlinternalLazy.ml", line 27, characters 17-27
Re-raised at file "camlinternalLazy.ml", line 34, characters 4-11
Called from file "errors.ml", line 114, characters 4-16

from links.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.