Closed dmitsuki closed 1 month ago
Should be fixed.
It still fails on this case for me
main.odin
package main
import "core:fmt"
import "testpackage"
CoolStruct :: struct
{
val1, val2, val3: int,
}
main :: proc()
{
//no completion on function or new value
newValue := testpackage.DummyFunction(CoolStruct, CoolStruct{});
newValue.val1 = 1;
//Compleition works
newerValue := testpackage.DummyFunction(testpackage.OtherStruct, testpackage.OtherStruct{});
newerValue.val1 = 10;
fmt.println("success");
}
testpackage/testpackage.odin
package testpackage
OtherStruct :: struct
{
val1, val2, val3: int,
}
DummyFunction :: proc($T: typeid, value: T) -> T
{
return value;
}
Try again.
That seems to have fixed it, thanks!
Essentially title. When an item is returned from a generic function the ability for ols to parse it seems to change based on scope.
main.odin
testpackage/testpackage.odin
minirepo.zip