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

Annotation of /tests/trunk/bugs/tests.obsolete/bug1421.1.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2460 - (view) (download)

1 : dbm 548 (* bug1421.1.sml *)
2 :    
3 :     signature E =
4 :     sig
5 :     type 'a err
6 :     val OK : 'a -> 'a err
7 :     val map : ('a -> 'b) -> 'a err -> 'b err
8 :     end;
9 :    
10 :     structure E1 : E =
11 :     struct
12 :     type 'a err = 'a
13 :     fun OK x = x
14 :     fun map1 f = f
15 :     val map = map1 (* causes an error ... *)
16 :     end;

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