Using the new template syntax for a local redefinition is ambiguous
Minimal example:
application test page root() { main template body() { "root" } } template main() { body } template body() { "default" }
Error:
Ambiguities found during parsing of ../test.app : amb( [ [ TemplateCallNoArgs("main") , DefineTemplate([], "body", [], None(), [Text("root")]) ] , [ TemplateCallNoArgs("main") , TemplateCallNoArgs("template") , TemplateCallNoAssigns("body", [], TemplateBody([Text("root")])) ] ] ) [ Main | critical ] Internal error - ambiguities found in module ../test.app
So the local redefinition of “
Submitted by Christoffer Gersen on 6 December 2012 at 14:31body
” can also be parsed as template calls to the templates “template
” and “body
”. This can be solved by rejecting “template” asTemplateCallId
.
Issue Log
On 6 December 2012 at 14:32 Christoffer Gersen tagged 1.3.0
On 6 December 2012 at 14:32 Christoffer Gersen closed this issue.
On 6 December 2012 at 14:32 Christoffer Gersen commented:
Fixed in r5549
Log in to post comments