[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.m2t] [Acceleo] Downcasting issue again
|
Hi,
i've again problems with the correct usage of downcasts. Primarily, i
tried to invoke a template with an inline downcast like this:
[mapTTCN3Type(p.type.oclAsType(PrimitiveType))/]
The parser says, that i try to invoke an illegal signature. However, by
surrounding the construct with a [let] block, it works as exepected.
[let pt:PrimitiveType =
p.type.oclAsType(PrimitiveType)][mapTTCN3Type(pt)/][/let] [p.name/] [if
p.isOptional()] optional[/if]
I'm using Acceleo 0.8 in Ganymede!
Thanks
Timothy