mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 14:55:24 +00:00
report expression has no type other than has to be used (or discarded… (#20392)
report expression has no type other than has to be used (or discarded) when typ is tyNone in discardCheck
(cherry picked from commit 08c02f0236)
This commit is contained in:
6
tests/errmsgs/t8064.nim
Normal file
6
tests/errmsgs/t8064.nim
Normal file
@@ -0,0 +1,6 @@
|
||||
discard """
|
||||
errormsg: "expression has no type: values"
|
||||
"""
|
||||
import tables
|
||||
|
||||
values
|
||||
Reference in New Issue
Block a user