Files
Nim/tests/errmsgs
metagn 894eee03a5 make var/pointer types not match if base type has to be converted (#24130)
split again from #24038, fixes
https://github.com/status-im/nimbus-eth2/pull/6554#issuecomment-2354977102

`var`/pointer types are no longer implicitly convertible to each other
if their element types either:

* require an int conversion or another conversion operation as long as
it's not to `openarray`,
* are subtypes with pointer indirection,

Previously any conversion below a subrange match would match if the
element type wasn't a pointer type, then it would error later in
`analyseIfAddressTaken`.

Different from #24038 in that the preview define that made subrange
matches also fail to match is removed for a simpler diff so that it can
be backported.

(cherry picked from commit 1660ddf98a)
2024-09-18 19:25:18 +02:00
..
2018-07-05 15:51:04 +02:00
2018-07-02 22:53:00 +02:00
2018-12-11 21:23:22 +01:00
2021-04-06 16:20:01 +02:00
2020-03-22 20:01:01 +01:00
2022-09-23 13:05:05 +02:00
2021-06-22 12:44:56 +02:00
2023-01-18 21:40:00 +01:00
2018-04-21 22:49:15 +02:00
2021-04-06 16:20:01 +02:00
2019-07-08 15:24:20 -07:00
2021-04-06 16:20:01 +02:00
2021-04-06 16:20:01 +02:00
2021-04-06 16:20:01 +02:00