compiler compiles a code which it must refuse (variant specific)
Original Reporter info from Mantis: PaulIsh
-
Reporter name: Paul Ishenin
Original Reporter info from Mantis: PaulIsh
- Reporter name: Paul Ishenin
Description:
Compiler compiles the next code:
program Project1;
{$mode objfpc}{$H+}
uses
Variants;
var
AValue: Variant;
AText: String;
begin
AValue = AText;
end.
Although if I change AValue from Variant to String then it refuse because 'AValue = AText' is an incorrect statement ('=' is used instead of ':=').
Mantis conversion info:
- Mantis ID: 15338
- OS: windows
- OS Build: xp
- Build: 14440
- Platform: win32
- Version: 2.5.1
- Fixed in version: 2.6.0
- Fixed in revision: 14458 (#d8946358)