mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-14 10:59:24 +02:00
Not having this led to a sneaky bug where, given a Variant like so: Variant<double, GC::Root<T>> An incorrectly-written visit() branch for the Root would just cause it to be cast to a double and call that branch instead. With the cast made explicit, we get a compiler error, which is far more useful. Co-authored-by: Jelle Raaijmakers <jelle@ladybird.org>
3.9 KiB
3.9 KiB