The `::gcd` is referencing the `Iterable<Int>.gcd(...
# announcements
k
The
::gcd
is referencing the
Iterable<Int>.gcd()
instead of
gcd(Int, Int)
. Swapping
::gcd
to
::helpers.gcd
gives
Unresolved reference: helpers
but renaming the function to something else and then back to
gcd
will swap it to
::helpers.gcd
which is marked red with
Internal Error occured while analyzing this expression
. How should I fix?
image.png
r
You should be able to fix it with
reduce<Int, Int>(::gcd)
, but you should file an issue for this as well: https://kotl.in/issue
k
Thanks
Should these be 2 issues? One for the type inference and 1 for the internal error?
r
I'd probably stick with one and split it if the JB wizards request it.