aboutsummaryrefslogtreecommitdiff
path: root/lib/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-12-21 22:35:24 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-12-21 22:35:24 -0700
commit6fdf7ce0af1c3ca210c3f49de4f833afee282076 (patch)
tree2896a0322e9948123b2dfd5fa0550147b9755e17 /lib/std
parent5d6380b38d7c83055fe29eb7f8a19b1424276cd7 (diff)
downloadzig-6fdf7ce0af1c3ca210c3f49de4f833afee282076.tar.gz
zig-6fdf7ce0af1c3ca210c3f49de4f833afee282076.zip
Sema: simplify coercion logic
Instead of a separate function, `coerceNum` for handling comptime-known number coercion, outside of the main switch, the `coerce` function now has a single big switch statement that decides the control flow based on the zig type tag.
Diffstat (limited to 'lib/std')
0 files changed, 0 insertions, 0 deletions