nimsuggest: suggest types in a type section
This commit is contained in:
parent
f162ff7773
commit
b414806e66
4 changed files with 23 additions and 3 deletions
15
nimsuggest/tests/ttype_decl.nim
Normal file
15
nimsuggest/tests/ttype_decl.nim
Normal 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?
|
||||
Loading…
Add table
Add a link
Reference in a new issue