Skip to content

Instantly share code, notes, and snippets.

@aggieben
Created July 9, 2009 20:42
Show Gist options
  • Save aggieben/143984 to your computer and use it in GitHub Desktop.
Save aggieben/143984 to your computer and use it in GitHub Desktop.
> type Test<'a when 'a: (static member Parse: string -> 'a)>(arg:string) = let value = arg;;
type Test< ^a when ^a : (static member Parse : string -> ^a)> =
class
new : arg:string -> Test< ^a>
end
// reflected as:
[Serializable, CompilationMapping(SourceConstructFlags.ObjectType)]
public class Test<a>
{
// Methods
public Test(string arg)
{
File1.Test<a> @this = (File1.Test<a>) this;
string value = arg;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment