tranleduy2000 / pascalnide

Pascal Compiler for Android
92 stars 25 forks source link

Wrong error. #20

Open ghost opened 6 years ago

ghost commented 6 years ago

program p; type Litere = (a, b); var x : Litere; y:char; i:integer; begin x:=a; i:=ord(x); writeln(i); end.

Compile wrong error: "The type of one or more arguments, is wrong, when calling the "ord" function. Accept functions: Ord(Char):integer" This error is incorrect because the program is correct and should not be error at compiler. screenshot_2017-10-09-21-34-46