Skip to content

Commit 5850c64

Browse files
committed
fix(ty): allow never to propagate through integer coercion
1 parent 9f9e194 commit 5850c64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ty/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ impl IntegerKind {
293293
(Self::Any, Type::U8 | Type::I8)
294294
| (Self::Signed, Type::I8)
295295
| (Self::Unsigned, Type::U8 | Type::I8)
296+
| (_, Type::Never) // Allow never to propagate.
296297
)
297298
}
298299

0 commit comments

Comments
 (0)