fix #17941: UnusedImport works for var/let/const/type invoked inside a generic (#17942)

* fix #17941: UnusedImport works for var/let/const/type invoked inside a generic

* fixup
This commit is contained in:
Timothee Cour 2021-05-08 00:56:46 -07:00 • committed by GitHub
commit 38b41f893a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

View file

@ -40,8 +40,7 @@ type
OsPlatform* {.pure.} = enum ## the OS this program will run on.
none, dos, windows, os2, linux, morphos, skyos, solaris,
irix, netbsd, freebsd, openbsd, aix, palmos, qnx, amiga,
atari, netware, macos, macosx, haiku, android, js,
standalone, nintendoswitch
atari, netware, macos, macosx, haiku, android, js, standalone, nintendoswitch
const
targetOS* = when defined(windows): OsPlatform.windows