Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Annotation of /tests/trunk/bugs/tests.obsolete/bug1013.sml
ViewVC logotype

Annotation of /tests/trunk/bugs/tests.obsolete/bug1013.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (view) (download)

1 : dbm 548 (* bug1013.sml *)
2 :    
3 :     signature A =
4 :     sig
5 :     type x
6 :     datatype d = D of {extension: x}
7 :     end;
8 :    
9 :     signature B =
10 :     sig
11 :     include A
12 :     type t
13 :     type b_x = {a: t, b: int}
14 :     sharing type b_x = x
15 :     end;
16 :    
17 :     signature C =
18 :     sig
19 :     include B
20 :     end;
21 :    
22 :     functor F (structure In: C) =
23 :     struct
24 :     fun f arg =
25 :     let val In.D {extension} = arg
26 :     val {a, ...}: In.b_x = extension
27 :     in a
28 :     end
29 :     end;
30 :    

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0