mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
stage2 Sema: add type resolving from comptime_float to float
This commit is contained in:
parent
90c73d8768
commit
76584ad0c6
@ -7368,6 +7368,15 @@ fn resolvePeerTypes(sema: *Sema, block: *Scope.Block, src: LazySrcLoc, instructi
|
||||
continue;
|
||||
}
|
||||
|
||||
if (chosen.ty.zigTypeTag() == .ComptimeFloat and candidate.ty.isFloat()) {
|
||||
chosen = candidate;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (chosen.ty.isFloat() and candidate.ty.zigTypeTag() == .ComptimeFloat) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (chosen.ty.zigTypeTag() == .Enum and candidate.ty.zigTypeTag() == .EnumLiteral) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user