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

/test/language/error_warning_msg/bad_if2.msg

http://github.com/tybor/Liberty
Unknown | 37 lines | 31 code | 6 blank | 0 comment | 0 complexity | 9478d8e3530465ec4d56658bc502eaed MD5 | raw file
 1****** Warning: Added missing "then" keyword.
 2
 3Line 13 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
 4         elseif 1
 5         ^       
 6------
 7****** Warning: Added missing "then" keyword.
 8
 9Line 14 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
10         else
11         ^   
12------
13****** Warning: Added missing "end" keyword to finish this "if" instruction.
14
15The source lines relevant to this message are the following:
16
17Line 17 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
18         if True then
19         ^           
20Line 18 column 7 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
21      ensure
22      ^     
23------
24****** Error: "if" (or "elseif" as well) must be followed by a
25BOOLEAN expression.
26
27Line 13 column 10 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
28         elseif 1
29         ^       
30------
31****** Fatal Error: The declaration type of this expression is
32INTEGER_8 (this is not BOOLEAN).
33
34Line 13 column 17 in BAD_IF2 (/home/cadrian/Workspace/Dev/Liberty/test/language/error_warning_msg/bad_if2.e):
35         elseif 1
36                ^
37------