in f# avalonia funcui, i have this call that works just fine Grid.margin (0.,20.,0.,0.)…
- User
in f# avalonia funcui, i have this call that works just fine
Grid.margin (0.,20.,0.,0.)but if i change it to this:
let gmargin = (0.,20.,0.,0.)
and later i do this:
Grid.margin gmargin
i get a compile error:
No overloads match for method 'margin'.Known type of argument: (float * float * float * float)Available overloads: - static member Layoutable.margin: margin: Thickness -> Types.IAttr<#Layoutable> // Argument 'margin' doesn't match - static member Layoutable.margin: margin: float -> Types.IAttr<#Layoutable> // Argument 'margin' doesn't match
Why is the compiler lying. Obviously there is a overload method that takes a 4 tuple of floats, since I am calling it in the first instance. What is going on>
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.