[scala] type info makes use of case classes/objects