can't use TYPE in units

General discussion on mikroPascal for AVR.
Post Reply
Author
Message
vladaepro
Posts: 7
Joined: 29 May 2008 21:19

can't use TYPE in units

#1 Post by vladaepro » 06 Jun 2008 09:53

I can't define any type = record ... in units. Got error that compiler can't compile that unit. Here is my unit:

unit testunit;

type testrec = record
a,b:byte;
end;

implementation

end.

If i put that type statement in main program, it can compile (but i need to use types in units, not in main program only).

Is this a bug or i'm doing something wrong?

Thanx

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

#2 Post by filip » 06 Jun 2008 13:06

In order to help you, please send your project which demonstrates your problem packed in a ZIP or RAR archive, to filip@mikroe.com so I could test it and solve your problem.

Post Reply

Return to “mikroPascal for AVR General”