Skip to content

Instantly share code, notes, and snippets.

@ijp
Created November 28, 2011 16:17
Show Gist options
  • Save ijp/1400944 to your computer and use it in GitHub Desktop.
Save ijp/1400944 to your computer and use it in GitHub Desktop.
class type foo =
object
method bar : bazt
end and bazt =
object
inherit foo
end;;
class baz =
object (self : #foo)
method bar = (self :> baz)
end;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment