Richard Smith
c297344937
Support conversion between integer types. ( #6856 )
...
Add an `IntFitsIn` interface with a custom witness, such that `T impls
IntFitsIn(U)` if `T` is an integer type all of whose values fit
losslessly into the integer type `U`. Use it to constrain implicit
conversions between integer types.
So far, this has not been extended to the
`CppCompat.[U]{Long32,LongLong64}` types, only to `Core.Int(N)` and
`Core.UInt(N)`.
Assisted-by: Gemini 3 Pro via Antigravity
2026-03-10 01:40:16 +00:00
..
2026-03-10 01:40:16 +00:00
2026-03-06 17:35:48 +00:00
2026-03-06 17:35:48 +00:00
2026-02-19 23:33:36 +00:00
2026-03-06 17:35:48 +00:00
2026-02-27 13:50:56 +00:00
2026-02-27 13:50:56 +00:00
2026-02-26 20:10:50 +00:00
2026-02-19 23:33:36 +00:00
2026-02-19 23:33:36 +00:00
2026-03-06 17:35:48 +00:00
2025-12-17 15:46:30 +00:00
2026-02-27 13:50:56 +00:00
2026-03-03 00:19:47 +00:00
2026-03-03 00:19:47 +00:00
2026-03-02 17:57:31 +00:00
2026-02-27 13:50:56 +00:00
2026-02-26 20:10:50 +00:00
2026-02-27 13:50:56 +00:00
2026-03-03 00:19:47 +00:00
2026-03-03 00:19:47 +00:00
2026-02-27 13:50:56 +00:00
2026-03-06 17:35:48 +00:00
2026-02-27 13:50:56 +00:00
2026-02-27 13:50:56 +00:00
2026-02-27 13:50:56 +00:00
2026-03-03 00:19:47 +00:00
2026-02-26 23:01:24 +00:00
2026-03-03 00:19:47 +00:00
2026-03-06 17:35:48 +00:00
2026-02-27 13:50:56 +00:00
2026-03-02 17:57:31 +00:00
2026-02-27 13:50:56 +00:00
2026-02-27 13:50:56 +00:00
2026-02-27 13:50:56 +00:00
2025-06-18 20:45:46 +00:00
2026-02-27 13:50:56 +00:00
2026-03-06 17:35:48 +00:00
2025-06-18 20:45:46 +00:00
2026-03-06 17:35:48 +00:00
2026-02-19 23:33:36 +00:00
2026-03-03 00:19:47 +00:00
2026-03-03 00:19:47 +00:00
2026-02-27 13:50:56 +00:00
2026-02-19 23:33:36 +00:00
2026-02-27 13:50:56 +00:00
2026-03-03 00:19:47 +00:00
2026-03-06 17:35:48 +00:00
2026-03-03 00:19:47 +00:00
2026-02-27 13:50:56 +00:00
2026-02-27 13:50:56 +00:00
2026-03-06 17:35:48 +00:00
2026-03-03 00:19:47 +00:00
2025-06-18 20:45:46 +00:00
2026-02-27 13:50:56 +00:00
2025-12-11 19:44:39 +00:00
2026-02-27 13:50:56 +00:00
2026-03-06 17:35:48 +00:00
2026-03-06 17:35:48 +00:00
2026-02-27 13:50:56 +00:00
2026-03-06 17:35:48 +00:00
2026-02-25 15:15:29 +00:00