fsharp icon indicating copy to clipboard operation
fsharp copied to clipboard

FS3559 raised with PrintfFormat

Open kerams opened this issue 2 years ago • 2 comments

Repro steps

Giraffe endpoint definition with PrintfFormat:

image

image

Expected behavior

No warning.

Actual behavior

FS3559.

Known workarounds

None.

Related information

VSIX build from 9e357ca5f82f5e800b259cbda7d91507b41d2e9a

kerams avatar Nov 17 '23 09:11 kerams

Does adding type annotations fix the problem? Why do you think this warning is unexpected here?

abonie avatar Aug 19 '24 17:08 abonie

Because I am not using objects anywhere. The fact that PrintfFormat has a bunch of type parameters is an implementation detail (formats are an intrinsic), so I don't see why I should be warned if some of them are inferred to be obj.

kerams avatar Oct 18 '24 09:10 kerams