crystal-ameba / ameba

A static code analysis tool for Crystal
https://crystal-ameba.github.io
MIT License
521 stars 38 forks source link

BUG: trying to downcast (Slice(UInt8) | Nil) (Crystal::MixedUnionType) <- Slice(UInt8) (Crystal::GenericClassInstanceType) (Exception) #397

Closed jwoertink closed 1 year ago

jwoertink commented 1 year ago

Just got this error against Crystal nightly when running CI for Lucky using Ameba 1.5.0

https://github.com/luckyframework/lucky/actions/runs/5722039908/job/15504511981?pr=1818#step:4:37

I'll file this on Crystal too, just in case.

straight-shoota commented 1 year ago

This was resolved with https://github.com/crystal-lang/crystal/issues/13720

jwoertink commented 1 year ago

Can confirm! I've gone back to a few projects and ran and got green 👍 Thanks!