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/bug706.sml
ViewVC logotype

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (view) (download)

1 : dbm 548 (* bug706.sml *)
2 :     (* non-terminating structure compilation in 0.75 *)
3 :    
4 :     structure Queue1 =
5 :     struct
6 :    
7 :     type 'a T = 'a list;
8 :     exception E;
9 :    
10 :     fun hd(x::q) = x
11 :     | hd [] = raise E;
12 :     end
13 :    
14 :     signature QUEUE =
15 :     sig
16 :     type 'a T
17 :     exception E
18 :     val hd : 'a T -> 'b T
19 :     end;
20 :    
21 :     structure Q1: QUEUE = Queue1;

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