Current message:
test.sol:4:31: Error: Expected type name
function foo(uint a, uint b,) {}
^
Improved message:
test.sol:4:31: Error: Unexpected trailing comma in function arguments
function foo(uint a, uint b,) {}
^
Also applies to return types:
test.sol:4:45: Error: Expected type name
function foo(uint a, uint b) returns(uint,) {}
^