1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
(* Three different bugs to do with where-type constraints. *)
signature EXPORTTREESIG =
sig
(* Export tree. *)
type ptProperties
include sig type exportTree end where type exportTree = int * ptProperties list
end;
functor INITIALISE_ (
structure VALUEOPS : sig
type location
end where type location = int;
structure EXPORTTREE: EXPORTTREESIG
structure MAKE :
sig
type exportTree
end where type exportTree = EXPORTTREE.exportTree;
) =
struct end;
(* I think I've identified these. *)
functor INITIALISE_ (
structure EXPORTTREE: sig
type exportTree
end where type exportTree = int
structure MAKE :
sig
type exportTree
end where type exportTree = EXPORTTREE.exportTree;
) = struct end;
(* I think I've identified this one. *)
signature EXPORTTREESIG =
sig
type ptProperties
include sig type location end where type location =
{ file: string, startLine: int, startPosition: int, endLine: int, endPosition: int }
include sig type exportTree end where type exportTree = location * ptProperties list
include sig type navigation end where type navigation =
{parent: (unit -> exportTree) option,
next: (unit -> exportTree) option,
previous: (unit -> exportTree) option}
end;
functor F(structure E: EXPORTTREESIG) = struct end;
|