Closed
Description
'123-456'
.split('-')
.map((String t) => int.parse(t.trim()))
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.toList()
Information:(92, 22) The argument type '(String) → T' cannot be assigned to the parameter type '(String) → int'
int val = 10;
math.min(100, val);
Information:(115, 22) The argument type 'int' cannot be assigned to the parameter type 'T'
I wasn't yet able to figure out how to apply generic type comments to satisfy these checks.