xo-reader: bugfix: expect_formal_xs push expect_type_xs for rhs type
This commit is contained in:
parent
e43d3536c0
commit
12efbebe21
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
*/
|
||||
|
||||
#include "expect_formal_xs.hpp"
|
||||
#include "expect_type_xs.hpp"
|
||||
#include "xo/expression/Variable.hpp"
|
||||
|
||||
namespace xo {
|
||||
|
|
@ -59,6 +60,7 @@ namespace xo {
|
|||
{
|
||||
if (this->formalxs_type_ == formalstatetype::formal_1) {
|
||||
this->formalxs_type_ = formalstatetype::formal_2;
|
||||
p_stack->push_exprstate(expect_type_xs::make());
|
||||
} else {
|
||||
exprstate::on_colon_token(tk,
|
||||
p_stack);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue