IntelliSense - Quick Info not indicating statically resolved type parameters correctely
See original GitHub issueHi, I’m using Visual Studio Community 2015 with Visual F# 4.0
For example, the function
let inline printAsFloatingPoint number =
printfn "%f" (float number);;
//val inline printAsFloatingPoint :
//number: ^a -> unit when ^a : (static member op_Explicit : ^a -> float)
would show
in Quick Info, where the type parameters are supposed to be ^ident
Is this behavior by design or is it a bug? It confused me while I was learning about statically resolved types and inline functions.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Statically Resolved Type Parameters
IntelliSense gives me the following error when I define the type of field AField ( AField : A< BTy > ) which is:...
Read more >Program that should not compile, using statically resolved ...
Using statically resolved type parameters, we ran into a problem where we wrote some code that was wrong according to what the types...
Read more >IntelliSense in Visual Studio
IntelliSense is a code-completion aid that includes a number of features: List Members, Parameter Info, Quick Info, and Complete Word.
Read more >Settings Reference for Python
Python settings reference. The Python Extension for Visual Studio Code is highly configurable. This page describes the key settings you can work with....
Read more >Autocomplete in Dynamically Typed Languages | by Mark Lewis
The thing is, what I'm asking for is provably impossible to do in dynamically typed languages because that information isn't known until ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For what it’s worth, I was recently learning F# and static resolved type parameters and was very confused when I encountered this. I thought I didn’t correctly understand statically resolved type parameters or was failing to make use of them.
I understand the POV. That said, the signature simplification was a design choice we already made in F# 2.0. It was a considerable improvement to usability that has not been the source of significant problems. So this is by design I’m afraid.
Feasibly there could be a VS option “show full detail of all type signatures in QuickInfo” but that would be a feature request?
best regards don