question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IntelliSense - Quick Info not indicating statically resolved type parameters correctely

See original GitHub issue

Hi, 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 36qgsc6mbffb 15vodeicq 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:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
TysonMNcommented, Jul 12, 2019

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.

0reactions
dsymecommented, Jul 23, 2015

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found