Ad
  • Custom User Avatar

    @Voila your answer doesn't help with anything

  • Default User Avatar

    There are both tests with Int and Integer. Declare the function type so that it can work with either or just don't declare the type.

  • Custom User Avatar

    I experienced this as well

  • Custom User Avatar

    Read the error carefully:

    Couldn't match type Int with Integer
    Expected type: [Integer]
    Actual type: [Int]

    Your function's type signature is [Integer], but it should actually be [Int].