Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions checker/internal/type_checker_builder_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,16 @@ absl::Status ValidateType(const Type& t, bool check_type_param_name,
return absl::OkStatus();
}
case TypeKind::kOpaque: {
for (Type type_param : t.AsOpaque()->GetParameters()) {
OpaqueType opaque_type = t.GetOpaque();
for (Type type_param : opaque_type.GetParameters()) {
CEL_RETURN_IF_ERROR(ValidateType(type_param, check_type_param_name,
depth_limit, remaining_depth));
}
return absl::OkStatus();
}
case TypeKind::kType: {
for (Type type_param : t.AsType()->GetParameters()) {
TypeType type_type = t.GetType();
for (Type type_param : type_type.GetParameters()) {
CEL_RETURN_IF_ERROR(ValidateType(type_param, check_type_param_name,
depth_limit, remaining_depth));
}
Expand Down
Loading