ols icon indicating copy to clipboard operation
ols copied to clipboard

proc groups are not included in fake methods

Open thetarnav opened this issue 1 year ago • 2 comments

add_int   :: proc (a, b: int) -> int {return a+b}
add_float :: proc (a, b: f32) -> f32 {return a+b}
add :: proc {add_float, add_int}

n: int
n. // shows only add_int

image

Might be related to #462

thetarnav avatar Aug 21 '24 20:08 thetarnav

I wonder if it's better to only show the proc group. It seems silly to show add and add_int.

DanielGavin avatar Oct 05 '24 18:10 DanielGavin

maybe first try matching add and then add_int if it fails? so a will give you add but ai will give add_int?

thetarnav avatar Oct 06 '24 03:10 thetarnav