Comments (9)
I think the code sample is not correctly displayed
from fsharp.
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.
The foo function still looks strange. Is it really a space between the angle brackets?
from fsharp.
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.
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.
@forki, foo< >
stands for type application with an empty list of type parameters (6.4 Basic application expressions)
from fsharp.
@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.
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.
That's a sufficient resolution. In that case we can close this.
from fsharp.
Related Issues (20)
- [Automated] PRs inserted in VS build main-35006.68
- [Automated] PRs inserted in VS build main-35006.55
- [Automated] PRs inserted in VS build feature.debugger.main-35006.210
- `FSharpExpr` documentation references nonexistent module
- Can't Use Library From F# (FS1109 System.Drawing) HOT 4
- [Automated] PRs inserted in VS build 20240610.19
- IsUnionCaseTester throwing an error
- Tracking issue - improve FSI debugging
- Visual Studio selects the highest version of the sdk installed on the machine when executing scripts in FSI HOT 5
- We should disable the --multiemit[+/-] switch in fsi. HOT 1
- [Automated] PRs inserted in VS build main-35014.15
- Clean - build -pack fails
- [Automated] PRs inserted in VS build feature.debugger.main-35014.68
- F# discriminated unions simple use raises AOT and trimming warnings on publish. HOT 3
- [Automated] PRs inserted in VS build main-35018.33
- Fix or remove legacy VS tests HOT 4
- [Automated] PRs inserted in VS build feature.debugger.main-35020.110
- Module suffix is visible in VS tooltips
- Minimize the number of desktop-only compiler service tests HOT 4
- .NET9.0 mono VMR source-build fails to build "fsharp" on Fedora on s390x HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsharp.