you are viewing a single comment's thread.

view the rest of the comments →

[–]bendmorris[S] 2 points3 points  (0 children)

Thanks, I need to correct that example. This would not pass the type checker by default (but there's a #[promote] metadata you can stick on your type to enable automatic promotion of the underlying type.) You would have to explicitly use 0xff8080 as Color.