Forget my errors but I am currently programming with FreePascal and I tested the line:
var myString : String = 'Hello';
and it compiles my project without showing any error.
even:;
var current: string = '1.6';
compiles OK.
May be the problem is something about bad scope.
Best wishes.