A TS rule that matches on a pattern containing only wildcards fails:

Annotation(exp) :-
	where exp => String(_)

When compiling, I get this error:

match symbols in build pattern
	Build(Anno(Op("String",[Wld]),Op("Nil",[])))

A workaround is to replace at least one wildcard by an unused variable:

Annotation(exp) :-
	where exp => String(x)
Submitted by D. Pelsmaeker on 7 July 2014 at 13:58

On 28 May 2015 at 00:00 Jeff Smits commented:

Added this workaround to the desugaring in TS, see PR 3.

Log in to post comments