| author | |
| committer | |
| log | 76584ad0c6ac09e38da1abf354f86e3e3ecce659 |
| tree | 0f935d5d3348de213d587bf22858b1fa10ca8a9c |
| parent | 90c73d8768bd51c84a5bf3d589d31abce6d93d37 |
1 files changed, 9 insertions(+), 0 deletions(-)
src/Sema.zig+9| ... | @@ -7368,6 +7368,15 @@ fn resolvePeerTypes(sema: *Sema, block: *Scope.Block, src: LazySrcLoc, instructi | ... | @@ -7368,6 +7368,15 @@ fn resolvePeerTypes(sema: *Sema, block: *Scope.Block, src: LazySrcLoc, instructi |
| 7368 | continue; | 7368 | continue; |
| 7369 | } | 7369 | } |
| 7370 | 7370 | ||
| 7371 | if (chosen.ty.zigTypeTag() == .ComptimeFloat and candidate.ty.isFloat()) { | ||
| 7372 | chosen = candidate; | ||
| 7373 | continue; | ||
| 7374 | } | ||
| 7375 | |||
| 7376 | if (chosen.ty.isFloat() and candidate.ty.zigTypeTag() == .ComptimeFloat) { | ||
| 7377 | continue; | ||
| 7378 | } | ||
| 7379 | |||
| 7371 | if (chosen.ty.zigTypeTag() == .Enum and candidate.ty.zigTypeTag() == .EnumLiteral) { | 7380 | if (chosen.ty.zigTypeTag() == .Enum and candidate.ty.zigTypeTag() == .EnumLiteral) { |
| 7372 | continue; | 7381 | continue; |
| 7373 | } | 7382 | } |