Skip to content

Rejects setting numeric fields to numbers of another type in CelRuntime. - #1467

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1020507991
Open

copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1020507991

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

Rejects setting numeric fields to numbers of another type in CelRuntime.

TestAllTypes{single_uint64: dyn(-1)} set the field to 18446744073709551615u, and now fails, as the spec has no implicit conversions between int, uint, and double. Likewise for list elements, map keys and values, and wrapper messages such as google.protobuf.UInt64Value{value: dyn(1)}.

`TestAllTypes{single_uint64: dyn(-1)}` set the field to `18446744073709551615u`, and now fails, as the spec has no implicit conversions between int, uint, and double. Likewise for list elements, map keys and values, and wrapper messages such as `google.protobuf.UInt64Value{value: dyn(1)}`.

PiperOrigin-RevId: 1020507991
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.

1 participant