Giter Club home page Giter Club logo

Comments (9)

forki avatar forki commented on July 18, 2024

I think the code sample is not correctly displayed

from fsharp.

latkin avatar latkin commented on July 18, 2024

Updated with what I believe is proper formatting (though the original repro is probably not useful given the greatly simplified repro), and a link back to original codeplex bug.

from fsharp.

forki avatar forki commented on July 18, 2024

The foo function still looks strange. Is it really a space between the angle brackets?

from fsharp.

latkin avatar latkin commented on July 18, 2024

The code is not properly formed, but it does repro the bug. Repro also occurs with more fully-formed code:

let rec foo<'t> c = bar c
and bar c = 0

from fsharp.

latkin avatar latkin commented on July 18, 2024

Oddly enough, the workaround compiles successfully, even with the (I would think) invalid code < >:

let rec bar c = 0
and foo< > c = bar c

from fsharp.

vladima avatar vladima commented on July 18, 2024

@forki, foo< > stands for type application with an empty list of type parameters (6.4 Basic application expressions)

from fsharp.

dsyme avatar dsyme commented on July 18, 2024

@latkin Hmm... I labelled this as fix ready in May - did the typar check PR fixed this and I just forgot to reference the issue?

from fsharp.

latkin avatar latkin commented on July 18, 2024

With current codebase, repro here #33 (comment) now fails with test.fs(1,9): error FS3188: Type inference caused an inference type variable to escape its scope. Consider adding type annotations to make your code less generic.

That's better than an ICE but it still doesn't compile.

from fsharp.

dsyme avatar dsyme commented on July 18, 2024

That's a sufficient resolution. In that case we can close this.

from fsharp.

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.