Using a keyword as member name in F#
f#
Solution
Use double-backticks:
type Fruit =
val ``type`` : string
Problem
Does F# allow defining a member with the name of a keyword? ``` type Fruit = val type : string ``` in C# this is possible using @: ``` class Fruit { string @type; } ```