redrield
06/14/2019, 8:02 PMhttps://0x0.st/zj-H.png▾
operator fun contains(p: Translation2d) = p.x in x..(x + w) && p.y in y..(y + h)
where all of the fields in use are Length, the inline class wrapping DoubleTuan Kiet
06/15/2019, 1:27 AM() -> Unit
is Function0<Unit>
Jacques Smuts
06/15/2019, 9:00 AMpindab0ter
06/15/2019, 4:17 PMSergio C.
06/16/2019, 12:14 PMShawn
06/16/2019, 4:12 PMval http200Status = object { val statusCode = 200; val description = "OK" }
println("The status code is ${http200Status.statusCode}")
Hullaballoonatic
06/16/2019, 5:15 PMSlackbot
06/16/2019, 8:44 PMSlackbot
06/17/2019, 7:53 AMpepe
06/17/2019, 11:49 AMfun testStuff([...], type: ?????) {
[...]
assert((foo as Either.Left).a is type)
[...]
}
Should type
be KClass
or KType
?? I'm a bit lostYan Pujante
06/17/2019, 1:16 PMrobstoll
06/17/2019, 1:40 PMcomponentN()
=> https://kotlinlang.org/docs/reference/multi-declarations.htmlrrader
06/17/2019, 3:00 PMinterface Some {
fun calculate(str: String? = null)
}
class SomeImpl : Some {
fun calculate(str: String? = null)
}
An overriding function is not allowed to specify default values for its parameters
Why?Toddobryan
06/17/2019, 3:30 PMSlackbot
06/17/2019, 4:30 PMrobstoll
06/17/2019, 4:47 PMinline fun <reified T> foo() = T::class.qualifiedName
be disallowed if inline fun <reified T> foo() = T::class
is?streetsofboston
06/17/2019, 7:12 PMclass Container<T>(val value: T)
and
class Container<T>(val value: T?)
?
(note the extra ?
after the T
)?Robert
06/17/2019, 7:43 PMCould not find org.jetbrains.kotlin:kotlin-stdlib-common:1.3.40-eap-107.
while I use 1.3.31-release-197
. There's no such version in one of my build files as for 1.3.40-eap-107
, there's no version specified. It says it is from a dependency, but I don't see it and I don't understand how it makes sense.
Required by:
project :
project : > project :KotlinBigInteger:bignum
project : > project :KotlinBigInteger:bignum > org.jetbrains.kotlin:kotlin-test-common:1.3.31
Any clue? Even stranger, when I build the main project (composite build) it produces this error. When I build the dependency only, it seems to work fine 😕Nezteb
06/17/2019, 8:15 PMsanmi
06/18/2019, 1:43 AMIfvwm
06/18/2019, 4:08 AMegek
06/18/2019, 2:50 PMRômero Ricardo
06/18/2019, 4:12 PMRuckus
06/18/2019, 5:05 PMUInt.MAX_VALUE
instead of UByte.MAX_VALUE
?
fun main() {
for (x in UByte.MIN_VALUE..UByte.MAX_VALUE) {
println(x)
}
}
ArtemHevorhian
06/18/2019, 7:06 PMzak.taccardi
06/18/2019, 7:53 PMtypealias
stored in Kotlin metadata?Andrew Gazelka
06/18/2019, 11:47 PMfun main
functions are allowed in the same package but not multiple fun main() = runBlocking { ... }
Andrew Gazelka
06/19/2019, 12:07 AMcomponentX()
functions are not on this page?Ifvwm
06/19/2019, 1:52 AM