jmfayard
06/14/2017, 11:01 AMKotlinCompileDaemon
which sometimes take 300% of the CPU or throws with a GC overhead limit exceeded
. What kind of infos can I provide / tools I can use to open a useful bug report on kotl.in/issue?janvladimirmostert
06/14/2017, 11:39 AM1..4
return you a list, but 4..1
doesn’t return anything. One would expect 4..1
equals (1..4).reversed()
.Paul Woitaschek
06/14/2017, 12:41 PMmg6maciej
06/14/2017, 6:13 PMmg6maciej
06/14/2017, 6:31 PMsomeSet = someSet.withOrWithout(someFlag, someElement)
.scott
06/14/2017, 6:48 PMcodeslubber
06/14/2017, 6:50 PMraulraja
06/14/2017, 8:58 PMreified
type args?Slackbot
06/14/2017, 9:18 PMmiha-x64
06/15/2017, 11:22 AMdalexander
06/15/2017, 12:10 PMval b: Byte = 3
when(b) { 1 -> {} }
compile? It currently fails with the message “Incompatible types, Int and Byte” because it treats 1 as an int literal, and there’s no way to specify byte literals. Asking here before I file a ticket (it also fails for Shorts).borisdamato
06/15/2017, 2:27 PMarocnies
06/15/2017, 6:19 PM"foo" = bar()
arocnies
06/15/2017, 6:36 PMRuckus
06/15/2017, 8:20 PMval name = item.name
when {
name == "john" -> { ... }
name.startsWith("Mary") -> { ... }
name.contains("Fred") -> { ... }
}
supaham
06/16/2017, 2:54 AMclass Bar
class Baz: Bar
class Foo<T: Bar>() {
fun input(t: T)
fun returnT(): T
}
Then
class Other(val foo: Foo<Bar>)
class Impl(foo: Foo<Baz>): Other(foo)
Impl generates: [TYPE_MISMATCH] Type mismatch: inferred type is Foo<Baz> but Foo<Bar> was expected
How can I overcome this issue?janvladimirmostert
06/16/2017, 10:30 AMfmd
06/16/2017, 11:26 AMvaskir
06/16/2017, 12:38 PMwitoldsz
06/16/2017, 9:07 PMjanvladimirmostert
06/16/2017, 11:19 PMopen class
for spring annotations to work ?x80486
06/16/2017, 11:35 PMjanvladimirmostert
06/17/2017, 12:19 AMdarkmoon_uk
06/17/2017, 7:47 AMArray
have an inline constructor; when the compiler says this is disallowed in my own code?evanchooly
06/17/2017, 11:27 PMakbarsha03
06/18/2017, 7:05 PMcheck
and require
in kotlin Preconditions.kt
😕witoldsz
06/18/2017, 10:28 PM!!
is ugly and can make bad, for me the hidden assumptions make my new and shiny Kotlin app throw NPE… (and I was supposed to see NPE ever again).
Maybe T!
types should have yet another dot-like operator, so it would be special and everyone could tell "aha, this is Java, nulls allowed".ftomassetti
06/19/2017, 7:49 AMkarelpeeters
06/19/2017, 1:15 PMdavid.bilik
06/19/2017, 1:55 PMprivate var cartProducts: List<CartProduct> = listOf()
set(value) {
field = value
// show value in UI
}
init {
productsRepository.observeProducts()
.subscribe({
cartProducts = it.map { CartProduct(it, Random().nextInt(10) + 1) }
}, { it.printStackTrace() })
}
the setter for cartProducts is not calleddavid.bilik
06/19/2017, 1:55 PMprivate var cartProducts: List<CartProduct> = listOf()
set(value) {
field = value
// show value in UI
}
init {
productsRepository.observeProducts()
.subscribe({
cartProducts = it.map { CartProduct(it, Random().nextInt(10) + 1) }
}, { it.printStackTrace() })
}
the setter for cartProducts is not calledradityagumay
06/19/2017, 2:49 PM