| ... | ... | @@ -7368,6 +7368,15 @@ fn resolvePeerTypes(sema: *Sema, block: *Scope.Block, src: LazySrcLoc, instructi |
| 7368 | 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 | 7380 | if (chosen.ty.zigTypeTag() == .Enum and candidate.ty.zigTypeTag() == .EnumLiteral) { |
| 7372 | 7381 | continue; |
| 7373 | 7382 | } |