fpc/tests/webtbf/tw14777a.pp
Jonas Maebe 8d65471fe2 * give a proper error when trying to use val() on a boolean (mantis #14777)
* don't allow a boolean or (wide)char to be used as the "error" parameter
    for val()

git-svn-id: trunk@14006 -
2009-11-01 17:18:40 +00:00

11 lines
92 B
ObjectPascal

{ %fail }
var
S: String;
B: Boolean;
E: Word;
begin
S := '0';
Val(S, E, B);
end.