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.
http://www.mikroe.com/forum/viewtopic.php?t=15544
Thank you.