DanielGavin / ols

Language server for Odin
MIT License
425 stars 66 forks source link

Inlay hints show incorrectly when using -> operator #225

Closed Pingar5 closed 1 year ago

Pingar5 commented 1 year ago

Relevant Odin documentation: https://odin-lang.org/docs/overview/#--operator-selector-call-expressions

Minimal reproduction

package reproduction

Data :: struct {
    procedure: proc(this: ^Data, other_proc: int),
}

main :: proc() {
    d := Data{}

    d->procedure(3)
}

image

DanielGavin commented 1 year ago

Fixed.