/[eiffelstudio]/trunk/eweasel/tests/melt006/test.e
ViewVC logotype

Contents of /trunk/eweasel/tests/melt006/test.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 65297 - (show annotations)
Thu Nov 30 20:22:33 2006 UTC (13 years, 2 months ago) by manus
File size: 957 byte(s)
Moved from trunk/Src/eweasel to trunk/eweasel so that a simple checkout of the source code is not penalized by the lenghty process of checking out all the tests of eweasel.
1
2 --| Copyright (c) 1993-2006 University of Southern California and contributors.
3 --| All rights reserved.
4 --| Your use of this work is governed under the terms of the GNU General
5 --| Public License version 2.
6
7 -- To reproduce error:
8 -- Compile class as is. Finish_freezing. Execute `test'.
9 -- Output is correct (calls three different unary operators).
10 -- Uncomment first line of each routine in this class. Rerun es3.
11 -- Execute `test'. Calls same unary operator `||' three
12 -- times instead of calling the three different unary operators.
13
14 class
15 TEST
16 creation
17 make
18 feature
19
20 make is
21 local
22 x: TEST
23 do
24 x := ## && || Current;
25 end;
26
27 prefix "##": TEST is
28 do
29 io.putstring ("In prefix %"##%"%N");
30 Result := Current;
31 end;
32
33
34 prefix "||": TEST is
35 do
36 io.putstring ("In prefix %"||%"%N");
37 Result := Current;
38 end;
39
40 prefix "&&": TEST is
41 do
42 io.putstring ("In prefix %"&&%"%N");
43 Result := Current;
44 end;
45
46 end

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23