Wasn’t sure if this was a bug or just how the new if operator is intended to work with subclasses, but the following code does not compile:
MyButton.style = if (someBoolean , MyStyle1, MyStyle2)
It gives a type mismatch error Expected MyStyle1.MyStyle1, but got MyStyle2.MyStyle2. Since they’re both just WebStyles, I assumed this would work properly. The styles in this example are both direct subclasses of WebStyle.