Skip to content

Commit e525353

Browse files
committed
Bugfix TypeInfo: Missing/Wrong cleanup in leave
VariableDefinition needs to cleanup the inputTypeStack and not argument Argument needs to cleanup inputTypeStack too
1 parent a075add commit e525353

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/TypeInfo.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,11 @@ export default class TypeInfo {
190190
this._typeStack.pop();
191191
break;
192192
case Kind.VARIABLE_DEFINITION:
193+
this._inputTypeStack.pop();
194+
break;
193195
case Kind.ARGUMENT:
194196
this._argument = null;
197+
this._inputTypeStack.pop();
195198
break;
196199
case Kind.ARRAY:
197200
case Kind.OBJECT_FIELD:

0 commit comments

Comments
 (0)