Got the same bug using the same procedure. See below:
---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:
Calling Next() on last token of stream
Condition: cur + 1 != end
File: Projects\ExpParse.cpp
Line: 115
Function: enum TokType __thiscall ExpressionParser::Next(void) const
Build: release 56 (32-bit) checked
Component: Construct 2 IDE
(Last Win32 error: 0)
You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.
---------------------------
Abort Retry Ignore
---------------------------