Unexpected type error with typo'd integer literal

Consider this example code:

let a: [(String, String, Int)] = [("foo", "bar", 1s)]

This obviously gives the following error:

error: 's' is not a valid digit in integer literal

However, it also gives an unexpected second error:

error: cannot convert value of type '(String, String)' to expected element type '(String, String, Int)'

Why is it ignoring the third tuple element?

2 Likes