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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 65297 - (show annotations)
Thu Nov 30 20:22:33 2006 UTC (12 years, 9 months ago) by manus
File size: 670 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 -- Calls infix "+" before prefix "##" (wrong precedence).
10
11 class
12 TEST
13 creation
14 make
15 feature
16
17 make is
18 local
19 k: TEST;
20 do
21 k := ## Current + Current;
22 end;
23
24 prefix "##": TEST is
25 do
26 io.putstring ("In prefix %"##%"%N");
27 Result := Current;
28 end;
29
30 infix "+" (arg: TEST): TEST is
31 do
32 io.putstring ("In infix %"+%"%N");
33 Result := Current;
34 end
35 end

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23