Page 1 of 1

Error using Properties from Generic Interface

Posted: 18 Oct 2014 12:34
by Martin Meyer
Hi Thomas,

please have a look at below code. The compiler (build 7500) throws error c504 : The expression has type '::string', which is incompatible with the type '@Type' on it.


Code: Select all

interface objA{@Type}     properties         prop : @Type (o). end interface objA   %---   interface objB     properties from objA{string}         prop end interface objB   class objB : objB end class objB   implement objB     clauses         prop() = "". end implement objB

Posted: 20 Oct 2014 11:21
by Thomas Linder Puls
Thank you. We will look at it.

Posted: 8 Dec 2014 10:16
by Thomas Linder Puls
This is fixed in Visual Prolog 7.5 Build 7501.

Select Web -> Check for Updates in the IDE to updated to the latest version.