fork download
  1. module type A = sig val id : string end
  2. module type B = sig val id : string end
  3.  
  4. module GetId (A : A) = struct let res = A.id end
  5.  
  6. module B : B = struct let id = "test" end
  7.  
  8. module Test = GetId (B)
  9.  
Success #stdin #stdout 0s 4440KB
stdin
Standard input is empty
stdout
Standard output is empty