Replace expectedTypes with expectedTypes[i] in the line in question. Reviewed-by: alanb
Reviewed-by: darcy, ihse