nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parser: remove warning about useless cast
[nit.git]
/
src
/
parser
/
lexer.nit
diff --git
a/src/parser/lexer.nit
b/src/parser/lexer.nit
index
452d452
..
8726fab
100644
(file)
--- a/
src/parser/lexer.nit
+++ b/
src/parser/lexer.nit
@@
-1264,7
+1264,7
@@
special TablesCapable
result = get_token
end
_token = null
- return result.as(not null)
+ return result
end
# Get a token, or null if it is discarded