azabost
02/22/2017, 10:31 AMazabost
02/22/2017, 10:31 AMazabost
02/22/2017, 10:35 AMError:annotation @Convert is missing a default value for the element 'value'
and a tooltip saying:
required: KClass<out (Converter<Any!,Any!>..Converter<*,*>?)>
found: Class<EnumStringConverter<*>>
robin
02/22/2017, 11:04 AMclass Test {
@get:Convert(EnumStringConverter::class)
var test = ""
}
ilya.gorbunov
02/22/2017, 2:19 PMazabost
02/22/2017, 3:17 PMnkiesel
02/23/2017, 11:04 AMprintln(mapOf(1 to "a", 2 to "b").withDefault({ "x" })[3])
would print x
gildor
02/23/2017, 1:07 PMnkiesel
02/23/2017, 7:51 PMMap.getOrElse
. But both of these would force all users to not use Map.get
or the operator []
. Perhaps I'm really looking at for new collection class that never returns null
? I was hoping to make map["x"]++
work somehow.ilya.gorbunov
02/23/2017, 8:01 PMwithDefault
doesn't affect the return value of get
, otherwise it would break the map invariants.ilya.gorbunov
02/23/2017, 8:02 PMmg6maciej
02/24/2017, 12:02 AMgetValue
on Map
, which can replace val x = map[key]!!
.
How about removeValue
to replace val x = map.remove(key)!!
?voddan
02/24/2017, 10:14 AMimport kotlin.test.*
? Have some thing happened to that package?
Slack Conversationmasted
02/24/2017, 10:28 AMjunit-platform-gradle-plugin
dependencies? had same issue before, solved by upgrading junit-platform-gradle-plugin
to 1.0.0-M3voddan
02/24/2017, 10:33 AMvoddan
02/24/2017, 10:33 AMvoddan
02/24/2017, 10:34 AMmasted
02/24/2017, 10:36 AMilya.gorbunov
02/24/2017, 12:41 PMkotlin-test
library.nimtiazm
02/27/2017, 11:08 AMnimtiazm
02/27/2017, 11:09 AMnimtiazm
02/27/2017, 11:09 AMmiha-x64
02/27/2017, 1:33 PMkotlin.Enum
not expose `java.lang.Enum`‘s valueOf(Class, String)
etc?cedric
02/28/2017, 6:42 PMuserHome
(System.getProperty(”user.home”)
, os
), etc...ilya.gorbunov
03/01/2017, 12:51 AMilya.gorbunov
03/01/2017, 12:57 AMilya.gorbunov
03/01/2017, 1:01 AMevanchooly
03/01/2017, 1:06 AMevanchooly
03/01/2017, 12:30 PMevanchooly
03/01/2017, 12:30 PM