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.

Inconsistent type incompatible error range

See original GitHub issue
let f (i: System.IDisposable) = ()

let o = obj()
o |> f
f o

The highlighted range is different between cases when using a prefix application and a pipe operator: in one case the argument is highlighted and in another cases it’s the function:

Screenshot 2022-09-12 at 11 30 47

Maybe it’d be better (and feasible?) to highlight the same thing in both cases?

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
auduchinokcommented, Sep 12, 2022

@charlesroddie The error is the same in both cases and is specifically about obj argument type being incompatible with IDisposable, so it’d probably be nice to highlight the argument.

0reactions
dsymecommented, Sep 23, 2022

This is not a bug - I agree with @charlesroddie’s analysis here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Inconsistent "possible lossy conversion from int to byte" ...
In case 1, the operands are of type int, so the overall expression is of type int, so it is incompatible. In case...
Read more >
Excel Tips: A Trick for Finding Inconsistent Data
Finding inconsistent data in a large spreadsheet can be time consuming. This Excel trick can make it much easier.
Read more >
My Experience in dealing with inconsistent number range ...
I am sharing my experience in dealing with many inconsistent issues, number range issues, express document/update fails. Sometimes user may ...
Read more >
Fix an inconsistent formula
Troubleshoot why it's inconsistent. Click Formulas > Show Formulas. Doing that lets you see the formulas in all cells, instead of the calculated...
Read more >
Identify Inconsistent and Incomplete Formal Requirement ...
When using a Requirements Table block, you can identify inconsistent and incomplete requirement sets, and find read-before-write errors.
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