Skip to content

Commit

Permalink
Merge pull request #358 from bmstu-iu9/vladisp-generic-match
Browse files Browse the repository at this point in the history
Автотест на нюанс с обобщением в специализации (#251)
  • Loading branch information
VladisP authored Jun 26, 2021
2 parents d13a3c9 + 037e9c9 commit c1ae85c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions autotests/opt-tree-spec14.ref
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
* TREE

$ENTRY Go {
/* empty */
= <F ('A') ('B') ('C') ('D')> : '1'
= <F ('A') ('_') ('C') ('D')> : '2'
= /* empty */;
}

F {
(e.A) (e.B) (e.C) (e.D) = <S (e.A) e.B 'A' (e.C e.D)>;
}

$SPEC S (e.S) e.d;

S {
(e.A) 'B' e.A e.E, e.E : e.E = '1';
(e.A) e._ e.A e.E = '2';
}

0 comments on commit c1ae85c

Please sign in to comment.