compiler/semtypes: improve lineinfo for exported object fields (#12495)

The line info should now points to the `a`, not the `*`, like this:
    a*: string
    ^
Additionally this fixes nimsuggest's highlighting of exported object
fields.
This commit is contained in:
alaviss 2019-10-24 23:06:53 +00:00 • committed by Andreas Rumpf
commit 5b3571c9a4
2 changed files with 17 additions and 2 deletions

View file

@ -0,0 +1,11 @@
type
O = object
a*: int#[!]#
discard """
$nimsuggest --tester $file
>highlight $1
highlight;;skType;;2;;2;;1
highlight;;skType;;3;;8;;3
highlight;;skField;;3;;4;;1
"""