-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,30 @@ | ||
module type M = sig | ||
module type A = sig | ||
val best_band_in_the_world : string [@@cfg (value = "1")] | ||
val worst_band_in_the_world : string [@@cfg (value = "2")] | ||
val get_lower_case_band_name : string -> string [@@cfg (value = "2")] | ||
val get_upper_case_band_name : string -> string [@@cfg (value = "1")] | ||
end | ||
|
||
module O:M = struct | ||
module B:A = struct | ||
let best_band_in_the_world = "RUSH" [@@cfg (value = "1")] | ||
let worst_band_in_the_world = "Nickelback" [@@cfg (value = "2")] | ||
let get_lower_case_band_name name = name [@@cfg (value = "2")] | ||
let get_upper_case_band_name name = name [@@cfg (value = "1")] | ||
end | ||
|
||
module N : sig | ||
module C : sig | ||
val best_band_in_the_world : string [@@cfg (value = "1")] | ||
val worst_band_in_the_world : string [@@cfg (value = "2")] | ||
end = struct | ||
let best_band_in_the_world = "RUSH" [@@cfg (value = "1")] | ||
let worst_band_in_the_world = "Nickelback" [@@cfg (value = "2")] | ||
end | ||
|
||
let rush () = N.best_band_in_the_world | ||
let nickelback () = N.worst_band_in_the_world [@@cfg (value = "2")] | ||
module D = struct | ||
let best_band_in_the_world = "RUSH" [@@cfg (value = "1")] | ||
let worst_band_in_the_world = "Nickelback" [@@cfg (value = "2")] | ||
end | ||
[@@cfg (value = "2")] | ||
|
||
let rush () = C.best_band_in_the_world | ||
let nickelback () = C.worst_band_in_the_world [@@cfg (value = "2")] |
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