Shawn
06/12/2018, 3:40 PMHamza
06/12/2018, 3:42 PMpankra
06/12/2018, 5:18 PMjw
06/12/2018, 5:19 PM0rph3u
06/12/2018, 5:20 PMHullaballoonatic
06/12/2018, 7:34 PMHullaballoonatic
06/12/2018, 7:40 PMCannot choose among the following candidates without completing type inference:
public fun <T> arrayListOf(vararg elements: Any): kotlin.collections.ArrayList<Any> /* = java.util.ArrayList<Any> */ defined in kotlin.collections
public fun <T> arrayListOf(vararg elements: Int): kotlin.collections.ArrayList<Int> defined in kotlin.collections
Hullaballoonatic
06/12/2018, 7:41 PMval b: Int = 1
val a: ArrayList<Any> = arrayListOf(b)
Hullaballoonatic
06/12/2018, 7:42 PMShawn
06/12/2018, 7:42 PMHullaballoonatic
06/12/2018, 7:42 PMarrayListOf
. listOf
works fineHullaballoonatic
06/12/2018, 7:42 PMsnowe
06/12/2018, 11:09 PMmci -X -Dkotlin.compiler.incremental=true
and the buildtime plugin, I'm able to see that our current compile time is on the order of minutes. Previously I thought this was the time to run our SpringBootTests (which makes sense), but for this to be compile time is absolutely terrible. We've got about 100300 lines of kotlin in this project so I know it's not going to be blazing fast, but this seems out of the norm.snowe
06/12/2018, 11:09 PMHamza
06/13/2018, 12:45 AMmichael.hunger
06/13/2018, 9:52 AMNumber
not define math operations like plus/minus etc. with result of Number
? it could just look at the largest of the two parameters (Long > Double > Long, BD > Double) and produce that typekarelpeeters
06/13/2018, 9:53 AMmichael.hunger
06/13/2018, 9:53 AMmichael.hunger
06/13/2018, 9:53 AMmichael.hunger
06/13/2018, 9:54 AMdiesieben07
06/13/2018, 9:54 AMDouble
.diesieben07
06/13/2018, 9:54 AMkarelpeeters
06/13/2018, 9:55 AMNumber
type, except for .toX
, in which case you should have just called .toX
on the operands.michael.hunger
06/13/2018, 9:58 AM+*-/
on Number 🙂diesieben07
06/13/2018, 9:59 AMInt
and then you compute the sum. Suddenly you can't go up as high because you are just working on Ints. There are just bugs lurking everywherekarelpeeters
06/13/2018, 9:59 AMBigInteger
and BigDecimal
and MyCustomNumber
implement Number
too, and there's no way to quantify which of them is largest.michael.hunger
06/13/2018, 10:02 AMmichael.hunger
06/13/2018, 10:02 AMdiesieben07
06/13/2018, 10:03 AMMyCustomNumber
? Or BobsAwesomeGreatNumberImplementation
? 😄michael.hunger
06/13/2018, 10:03 AM