Reputation: 11142
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; }
Upvotes: 3
Views: 132
Reputation: 141703
Use double-backticks:
type Fruit = val ``type`` : string
Upvotes: 5