DanielGavin / ols

Language server for Odin
MIT License
439 stars 67 forks source link

Missing support for assignment completion for unions of enums #372

Closed mtarik34b closed 2 months ago

mtarik34b commented 5 months ago

Assignment completion for unions of enums seem currently not supported: image

package pkg

import "core:fmt"

Subenum1 :: enum { ONE }
Subenum2 :: enum { TWO }
Superenum :: union { Subenum1, Subenum2 }
fn :: proc(mode: Superenum) { fmt.println(mode) }

main :: proc() {
    fn(.)
}
DanielGavin commented 3 months ago

Added support for it on the rename branch. Will close this issue when it's merged to master.

DanielGavin commented 2 months ago

Merged