Slackbot
03/23/2019, 9:48 PMShan
03/24/2019, 7:42 AMas
but I couldn't get it to work, probably doing it wrong. My use-case:Smallville7123
03/24/2019, 3:14 PMSlackbot
03/24/2019, 8:17 PMSmallville7123
03/24/2019, 8:23 PMsitepodmatt
03/25/2019, 2:16 AMval x: () -> Any? = @Repeated(5) {
"hi"
}
// test if x has annontation
//fail
println(x::class.java.annotations.first() as Repeated)
jw
03/25/2019, 2:28 AMDavid Cuesta
03/25/2019, 9:26 AMthana
03/25/2019, 10:38 AMstandinga
03/25/2019, 1:17 PMstandinga
03/25/2019, 2:16 PMdumptruckman
03/25/2019, 2:22 PMrook
03/25/2019, 4:13 PMinfix
functions that allows the left side to be implied by the context? For example, in apply
wathek
03/25/2019, 5:37 PMas
and setting the type of a variable, for instance:
val ids: List<Int> = environment.getArgument('ids')
VS
val ids = environment.getArgument('ids') as List<Int>
Kompass
03/26/2019, 5:38 AMTsvetozar Bonev
03/26/2019, 8:22 AMJakub Aniola
03/26/2019, 9:46 AMStephane M
03/26/2019, 10:53 AMarekolek
03/26/2019, 11:23 AM@Deprecated
annotation while having enabled allWarningsAsErrors = true
/ -Werror
? As far as I can tell it’s impossible, but maybe I missed something?Smallville7123
03/26/2019, 3:49 PMJakub Aniola
03/26/2019, 5:42 PMdumptruckman
03/26/2019, 6:11 PMSmallville7123
03/26/2019, 6:20 PMjw
03/26/2019, 7:11 PMRuckus
03/26/2019, 7:35 PMimport javafx.scene.paint.Color`
and
typealias Color = javafx.scene.paint.Color
Ruckus
03/26/2019, 7:36 PMimport javafx.scene.paint.Color as ColorFX
and
typealias ColorFX as javafx.scene.paint.Color
Bruno_
03/26/2019, 8:30 PMbuildSrc
I can't for example configure sonarqube because of some properties missingwrover
03/27/2019, 9:07 AMdmcg
03/27/2019, 10:32 AMribesg
03/27/2019, 11:01 AMvar
without backing field where the getter returns an optional value while the setter requires a non-optional one? Or am I just blocked on using 2 functions?ribesg
03/27/2019, 11:01 AMvar
without backing field where the getter returns an optional value while the setter requires a non-optional one? Or am I just blocked on using 2 functions?diesieben07
03/27/2019, 11:04 AMFoo?
but setter to only accept Foo
?ribesg
03/27/2019, 11:04 AMdiesieben07
03/27/2019, 11:06 AMCzar
03/27/2019, 11:11 AMlateinit var
or add a requireNotNull
check in the setter. Both seem a bit dirty to me though. See if you can refactor this somehow.ribesg
03/27/2019, 11:26 AM