karelpeeters
07/10/2017, 11:38 AMdiesieben07
07/10/2017, 11:43 AMarturro
07/10/2017, 12:09 PMif (v1 == null && v2 == null) {
return 0
}
if (v1 != null && v2 == null) {
return 1
}
if (v1 == null && v2 != null) {
return -1
}
elect
07/10/2017, 3:11 PMException in thread "main" java.lang.IllegalArgumentException
on @JvmField
fieldsmusachy
07/10/2017, 5:09 PMbrianwernick
07/10/2017, 7:58 PMpublic void setWebSite()
method?spand
07/11/2017, 9:41 AMvar members: MutableList<User>? = null
kotlin_questions
07/12/2017, 2:15 AMmaxim
07/12/2017, 7:35 AMrockerhieu
07/12/2017, 7:56 AMWarning: kotlin.internal.JRE8PlatformImplementations: can't find referenced method 'int start(java.lang.String)' in library class java.util.regex.Matcher
Warning: kotlin.internal.JRE8PlatformImplementations: can't find referenced method 'int end(java.lang.String)' in library class java.util.regex.Matcher
Warning: kotlin.internal.JRE8PlatformImplementations: can't find referenced method 'java.lang.String group(java.lang.String)' in library class java.util.regex.Matcher
It seems that this proguard instruction doesn't help: -keep class java.util.regex.Matcher { *; }
arturro
07/13/2017, 2:15 PMthis.javaClass.kotlin
returns KClass<T>
where this::class
returns KClass<out T>
arturro
07/13/2017, 2:22 PMthis.javaClass.kotlin.memberProperties.find{ it.name == "test" }!!.get(this)
but I cannot do that:
this::class.memberProperties.find{ it.name == "test" }!!.get(this)
//ErrorKotlin: Out-projected type 'KProperty1<out T, Any?>' prohibits the use of 'public abstract fun get(receiver: T): R defined in kotlin.reflect.KProperty1'
And I want to understand itanderson.faro
07/14/2017, 1:19 AMkarelpeeters
07/14/2017, 8:58 AMAny
with T
.danneu
07/14/2017, 12:31 PMinternal fun toType(): T
jschneider
07/14/2017, 4:11 PMjschneider
07/15/2017, 3:37 PMkevin.cianfarini
07/16/2017, 2:23 AMwith
clause does? Is it similar to python's with?trevjones
07/16/2017, 2:48 AMerluxman
07/16/2017, 12:15 PMvoddan
07/16/2017, 7:30 PMziad
07/16/2017, 8:51 PMziad
07/16/2017, 9:24 PMfunc MyFunction() : String {
var myReturnVariable : String //Can't seem to get this to be a val
callTo3rdPartyFunction {
//Do things
myReturnVariable = "hello!"
}
return myReturnVariable
}
harmony
07/16/2017, 11:31 PMEugen Martynov
07/16/2017, 11:58 PMNAME
has private acceessoday
07/17/2017, 2:31 PMrockerhieu
07/18/2017, 4:20 AMA
, I can use A.this
elect
07/19/2017, 9:11 AMString.format("#%02X%02X%02X%02X", *i)
diesieben07
07/19/2017, 9:14 AMmohita
07/20/2017, 9:07 AMmohita
07/20/2017, 9:07 AMnkiesel
07/20/2017, 8:18 PMfor (x in 1..10) println(x)
mohita
07/21/2017, 9:44 AM