fix: cel type provider should return a type type
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Kubernetes-commit: 1518c4ec16d06b7281f0b6c9a0e8c40952475f6b
This commit is contained in:
parent
918f350339
commit
15220968e1
|
|
@ -429,7 +429,7 @@ func (rt *DeclTypeProvider) FindStructType(typeName string) (*types.Type, bool)
|
|||
declType, found := rt.findDeclType(typeName)
|
||||
if found {
|
||||
expT := declType.CelType()
|
||||
return expT, found
|
||||
return types.NewTypeTypeWithParam(expT), found
|
||||
}
|
||||
return rt.typeProvider.FindStructType(typeName)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue