fork download
  1. type Foo<'a>(element : 'a) =
  2. member this.Copy () = Bar.Create element
  3. and Bar =
  4. static member Create<'a>(element : 'a) : Foo<'a> = Foo(element) //'
  5.  
  6. do
  7. let f = Foo(42)
  8. stdout.WriteLine (f.GetType().FullName)
Success #stdin #stdout 0s 29672KB
stdin
Standard input is empty
stdout
Prog+Foo`1[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]