/[eiffelstudio]/trunk/eweasel/tests/multicon002/multi.e
ViewVC logotype

Annotation of /trunk/eweasel/tests/multicon002/multi.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 66108 - (hide annotations)
Mon Jan 22 20:54:12 2007 UTC (12 years, 9 months ago) by martins
File size: 645 byte(s)
New tests checking multi-constraint formal generics.
1 martins 66108 indexing
2     description: "Objects that ..."
3     author: ""
4     date: "$Date$"
5     revision: "$Revision$"
6    
7     class
8     -- each class (A,B,C) has the features make, f and g
9     -- A keeps nothing
10     -- B keeps g and make
11     -- C keeps f
12    
13     MULTI[G->{ A rename default_create as default_create_a, make as make_a end,
14     B rename default_create as default_create_b end,
15     C rename default_create as default_create_c, make as default_create end} create make_a, default_create, make end]
16    
17     create
18     make
19    
20     feature -- Initialize
21    
22     make is
23     -- Do the testing
24     do
25     create mc.make_a
26     create mc.default_create
27     create mc.make
28     end
29    
30     feature -- Access
31    
32     mc: G
33    
34     end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date ID Revision

  ViewVC Help
Powered by ViewVC 1.1.23