Skip to content

fix(compiler): reject any, message and union as map key types#3804

Merged
chaokunyang merged 1 commit into
apache:mainfrom
BaldDemian:idl-map-key
Jun 30, 2026
Merged

fix(compiler): reject any, message and union as map key types#3804
chaokunyang merged 1 commit into
apache:mainfrom
BaldDemian:idl-map-key

Conversation

@BaldDemian

@BaldDemian BaldDemian commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Why?

As discussed in #3789 (comment), we should reject any message and union as IDL map key types. But the validator misses them in the check.

What does this PR do?

  • Reject any, message and union as map key types
  • Modify the test and doc accordingly

Related issues

N/A.

AI Contribution Checklist

  • Substantial AI assistance was used in this PR: no

Does this PR introduce any user-facing change?

N/A.

Benchmark

N/A.

@chaokunyang chaokunyang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chaokunyang chaokunyang merged commit 4660351 into apache:main Jun 30, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants