Hello Thomas,
on attached example the compiler throws "The expression has type 'arrayP::repDomain', which is incompatible with the type 'arrayP::repDomain{@ItemType}'". Is it a bug?
-
- VIP Member
- Posts: 314
- Joined: 14 Nov 2002 0:01
Incompatible types
- Attachments
-
- arrayP_Example (with error).zip
- (18.34 KiB) Downloaded 24 times
Regards Martin
- Thomas Linder Puls
- VIP Member
- Posts: 1327
- Joined: 28 Feb 2000 0:01
Re: Incompatible types
It is a bug. Actually, this bug turns up over and over in different contexts, but I guess that it will eventually be solved for all contexts.
The usual work-around also helps in this case. Redefine your domains like this:
And change all other occurrences of repDomain to repDomain{@ItemType}.
The usual work-around also helps in this case. Redefine your domains like this:
Code: Select all
domains
repDomain{T} = repDomain(arrayM{T} ArM, recoverableState State).
Regards Thomas Linder Puls
PDC
PDC