PageRenderTime 17ms CodeModel.GetById 11ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/test/language/error_warning_msg/bad_agent23.msg

http://github.com/tybor/Liberty
Unknown | 32 lines | 29 code | 3 blank | 0 comment | 0 complexity | 8f7ef3aab7759122e65c7266a6933d69 MD5 | raw file
 1****** Warning: Actually, `Void' has no accurate type. Keep in
 2mind that `Void' is just a way to denote the default value for
 3a type or to denote the lack of an object. One can use `Void'
 4as the right-hand-side of an assignment or to replace some actual
 5argument. (See "http://wiki.liberty-eiffel.org/index.php/Void"
 6for details.) At time being, the type ANY will be used for this
 7occurrence `Void'. Please update your code with a more accurate
 8expression, may be by adding an extra non-initialized local variable.
 9
10Line 18 column 32 in BAD_AGENT23 (/home/et/Liberty/test/language/error_warning_msg/bad_agent23.e):
11         p.call([{INTEGER 3 }, Void])
12                               ^     
13------
14****** Warning: Using `Void' as an item of a manifest TUPLE is
15not good practice because `Void' has no accurate type. You can
16work around by using an extra non-initialized local variable of
17some accurate type. Another work around is to use an explicit
18creation of the TUPLE. As an example `create {TUPLE[STRING,ANY]}.make_2(Void,Void)'
19can be used to create a TUPLE[STRING,ANY] with default values.
20
21Line 18 column 32 in BAD_AGENT23 (/home/et/Liberty/test/language/error_warning_msg/bad_agent23.e):
22         p.call([{INTEGER 3 }, Void])
23                               ^     
24------
25****** Fatal Error: Bad number of actual arguments for agent call.
26(The agent you are trying to call has 1 argument. Its type is
27ROUTINE[TUPLE[INTEGER_32]].)
28
29Line 18 column 17 in BAD_AGENT23 (/home/et/Liberty/test/language/error_warning_msg/bad_agent23.e):
30         p.call([{INTEGER 3 }, Void])
31                ^                    
32------