nimsuggest: suggest types in a type section

This commit is contained in:
Andreas Rumpf 2017-03-14 11:21:35 +01:00
commit b414806e66
4 changed files with 23 additions and 3 deletions

View file

@ -0,0 +1,15 @@
discard """
$nimsuggest --tester --maxresults:3 $file
>sug $1
sug;;skType;;ttype_decl.Other;;Other;;$file;;10;;2;;"";;0;;None
sug;;skType;;system.int;;int;;$lib/system.nim;;25;;2;;"";;0;;None
sug;;skType;;system.string;;string;;$lib/system.nim;;48;;2;;"";;0;;None
"""
import strutils
type
Other = object ## My other object.
Foo = #[!]#
proc main(f: Foo) =
# XXX why no doc comments?