Page 1 of 1

type My_data_type = array[2] of byte;

Posted: 25 Jun 2008 05:32
by yo2lio
Hello,

In MP8.1 :

Following short program compile only one time.
When I try to recompile again, without restarting the compiler, I got this :
3:6 E-14 Identifier "My_data_type" has been already declared in test1.ppas


After restarting the compiler , I can compile again, one time ....

This problem appear only if type is declared array.

Code: Select all

unit test1;

type My_data_type = array[2] of byte;

var data : My_data_type;

implementation

end.

Code: Select all

program Test_mp8;
      
uses test1;

begin
   data[0] := 0;
end.
This problems was reported by daduggan, here :
http://www.mikroe.com/forum/viewtopic.php?t=15544

Thank you.

Re: type My_data_type = array[2] of byte;

Posted: 25 Jun 2008 13:05
by zristic
Thanks Florin.
The incoming command line version has this issue resolved.

Posted: 25 Jun 2008 13:33
by yo2lio
Thank you !