Skip to content

Instantly share code, notes, and snippets.

@s952163
s952163 / gist:4c3dc427f40fcf3f918d33b5e4d322a1
Created July 13, 2017 14:56 — forked from robertpi/gist:2964793
F# record implementing an interface
namespace MyNamespace
type IMyInterface =
abstract GetValue: unit -> string
type MyRecord =
{ MyField1: int
MyField2: string }
interface IMyInterface with
member x.GetValue() = x.MyField2