/[eiffelstudio]/trunk/eweasel/tests/agent006/test1_rev1.e
ViewVC logotype

Contents of /trunk/eweasel/tests/agent006/test1_rev1.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75057 - (show annotations)
Thu Oct 9 20:55:06 2008 UTC (11 years, 4 months ago) by manus
File size: 290 byte(s)
Added a new eweasel test showing that the compiler fails to generate at runtime the proper agent type.

1 class TEST1
2
3 feature
4
5 f
6 local
7 a: ANY
8 do
9 a := agent g
10 print (a.generating_type)
11 print ("%N")
12 a := << g >>
13 print (a.generating_type)
14 print ("%N")
15 a := [ g ]
16 print (a.generating_type)
17 print ("%N")
18 end
19
20 g: like h
21 do
22 end
23
24 h: TEST1
25 do
26 end
27
28 end

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.23