Created
July 9, 2009 20:42
-
-
Save aggieben/143984 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> 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