Community
Participate
Working Groups
When inferring the type of a List or Map with undeclared type, a type constrain should be given higher precedence than inferring the type from the contents of the list. i.e. List<String> a = ["hello", 2]; Should produce error that 2 is not compliant with the list type (as opposed to stating that a List<Object> can not be assigned to a List<String>.
Implemented for List in revision 1325.
Implemented for Map in revision 1326.