lang: types, engine: graph: Support pointer interfaces

If we have rare, but special *interface{} values in resource structs, we
should be able to handle them normally. It's really not recommended that
you use these unless you know exactly why they are useful.
This commit is contained in:
James Shubin
2023-11-18 13:30:05 -05:00
parent 1c9fdc79c0
commit 4b0cdf9123
3 changed files with 41 additions and 15 deletions

View File

@@ -193,7 +193,7 @@ func StructFieldCompat(st1 interface{}, key1 string, st2 interface{}, key2 strin
}
// If we're sending _from_ an interface...
if kind1 == reflect.Interface {
if kind1 == reflect.Interface || kind1 == reflect.Ptr {
// TODO: Can we do more checks instead of only returning early?
return nil
}