@@ -523,7 +523,7 @@ function _peek_inner(state::_LexerState)
523523 while (c = peek (state, Char)) != = nothing && c != ' \n '
524524 _ = read (state, Char)
525525 end
526- elseif isdigit (c) || (c == ' -' && isdigit (peek (state, Char))) # Number
526+ elseif isdigit (c) || (c == ' -' && isdigit (peek (state, Char):: Char )) # Number
527527 buf = IOBuffer ()
528528 while (c = peek (state, Char)) != = nothing && _is_number (c)
529529 write (buf, c)
@@ -826,7 +826,7 @@ function _parse_term(
826826 # <quadratic-expression>
827827 return _parse_quadratic_expression (state, cache, prefix)
828828 end
829- token = peek (state, _Token)
829+ token = peek (state, _Token):: _Token
830830 return _throw_parse_error (
831831 state,
832832 token,
@@ -1050,7 +1050,7 @@ function _parse_constraint_sos(
10501050 f, w = MOI. VectorOfVariables (MOI. VariableIndex[]), T[]
10511051 while true
10521052 if _next_token_is (state, _TOKEN_NEWLINE)
1053- t = peek (state, _Token)
1053+ t = peek (state, _Token):: _Token
10541054 _throw_parse_error (
10551055 state,
10561056 t,
@@ -1096,7 +1096,7 @@ function _parse_constraint_indicator(
10961096 end
10971097 _ = read (state, _Token, _TOKEN_IMPLIES)
10981098 f = _parse_expression (state, cache)
1099- set = _parse_set_suffix (state, cache)
1099+ set = _parse_set_suffix (state, cache):: MOI.AbstractScalarSet
11001100 return MOI. add_constraint (
11011101 cache. model,
11021102 MOI. Utilities. operate (vcat, T, z, f),
@@ -1117,7 +1117,7 @@ function _parse_constraint(state::_LexerState, cache::_ReadCache)
11171117 _parse_constraint_indicator (state, cache)
11181118 else
11191119 f = _parse_expression (state, cache)
1120- set = _parse_set_suffix (state, cache)
1120+ set = _parse_set_suffix (state, cache):: MOI.AbstractScalarSet
11211121 MOI. add_constraint (cache. model, f, set)
11221122 end
11231123 if name != = nothing
0 commit comments