/test/language/error_warning_msg/bad_agent24.msg
http://github.com/tybor/Liberty · Unknown · 36 lines · 32 code · 4 blank · 0 comment · 0 complexity · bbab8df7c725a11b9aaec1849e0d3316 MD5 · raw file
- ****** Warning: Actually, `Void' has no accurate type. Keep in
- mind that `Void' is just a way to denote the default value for
- a type or to denote the lack of an object. One can use `Void'
- as the right-hand-side of an assignment or to replace some actual
- argument. (See "http://wiki.liberty-eiffel.org/index.php/Void"
- for details.) At time being, the type ANY will be used for this
- occurrence `Void'. Please update your code with a more accurate
- expression, may be by adding an extra non-initialized local variable.
- Line 12 column 32 in BAD_AGENT24 (/home/et/Liberty/test/language/error_warning_msg/bad_agent24.e):
- (agent proc(?)).call([Void])
- ^
- ------
- ****** Warning: Using `Void' as an item of a manifest TUPLE is
- not good practice because `Void' has no accurate type. You can
- work around by using an extra non-initialized local variable of
- some accurate type. Another work around is to use an explicit
- creation of the TUPLE. As an example `create {TUPLE[STRING,ANY]}.make_2(Void,Void)'
- can be used to create a TUPLE[STRING,ANY] with default values.
- Line 12 column 32 in BAD_AGENT24 (/home/et/Liberty/test/language/error_warning_msg/bad_agent24.e):
- (agent proc(?)).call([Void])
- ^
- ------
- ****** Fatal Error: Cannot pass `[Void]' which is of type TUPLE[ANY]
- into formal type TUPLE[CHARACTER].
- The source lines relevant to this message are the following:
- Line 12 column 31 in BAD_AGENT24 (/home/et/Liberty/test/language/error_warning_msg/bad_agent24.e):
- (agent proc(?)).call([Void])
- ^
- Line 13 column 24 in PROCEDURE (/home/et/Liberty/src/lib/kernel/procedure.e):
- call alias "()" (o: O_)
- ^
- ------