It's not a bug. The comma separates arguments in an identifier, so you should set a variable or use (?: ... ) like you've displayed there.