elect
10/14/2018, 6:50 PM1.3.0-rc-152
and now I get Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0-rc-152.
.. anybody else?Nikky
10/14/2018, 6:54 PMbkenn
10/14/2018, 9:15 PMitnoles
10/15/2018, 2:35 AMtoxara
10/15/2018, 7:34 AMhandleBox
typecheck without unsafe casting?Sudhir Singh Khanger
10/15/2018, 11:05 AMkt
files with Kotlin icon and not as a standard text file icon in Linux/KDE.Hamza
10/15/2018, 2:28 PMcom.ab.cd.ef
.) it creates the package <http://com.ab.cd|com.ab.cd>
and puts the class ef
inside it.
Doing the same with Kotlin, it creates a file called com.ab.cd.ef
. Whyyyy 😞natpryce
10/15/2018, 3:41 PMError:(17, 5) Kotlin: Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option
What’s the solution to this?orangy
10/15/2018, 8:10 PMotakusenpai
10/16/2018, 1:51 AMDavio
10/16/2018, 5:44 AMspand
10/16/2018, 8:51 AMarekolek
10/16/2018, 9:27 AMfromJson
function behaves with a generic type and found this. Can anybody explain why that instance check is sometimes true and other times false? 🤔Hamza
10/16/2018, 9:41 AMJakub
10/16/2018, 10:04 AMVoid
? Is there something more Kotlinish? Or this is because I’m using RxJava
not RxKotlin
otakusenpai
10/16/2018, 10:37 AMfun foo(foo1: String) : Boolean {
var hasit = false
for(fooS in fooList) {
if(fooS == foo1) {
hasit = true
break
}
else continue
}
return hasit
}
...
var fooList = listOf<String>(...)
How do i change the above function to use collection functions like forEach or anything else ?arekolek
10/16/2018, 10:37 AMfooList.any { foo1 == it }
?robstoll
10/16/2018, 10:43 AMNikky
10/16/2018, 12:05 PMGarouDan
10/16/2018, 12:40 PMvar parent: MyAbstractClass? = null
how can I override this property in some of the concrete class to have something like:
override var parent: MyConcreteClass? = null
I know that is possible to override properties, but it looks like kotlin do not understand that the MyConcreteClass is a supertype coming from the MyAbstractClass.
Is there a way to get around this?user
10/16/2018, 12:56 PMfrellan
10/16/2018, 2:08 PM.filter
only if a certain condition is true, how do I do that? .apply { if (boolean) filter {} }
does not seem to workSlackbot
10/16/2018, 2:09 PMRuckus
10/16/2018, 6:30 PMulrikguenther
10/16/2018, 7:54 PMDALDEI
10/16/2018, 8:42 PMpublic interface JavaDup
{
// public String a ;
public String getA();//{ return a ; }
public void setA(String a) ;//{ a=_a;}
}
----- kotlin
import util.JavaDup
class B : JavaDup {
override var a : String = "hi"
}
Davio
10/17/2018, 4:41 AMSeri
10/17/2018, 5:05 AMhttps://www.youtube.com/watch?v=FDOECr-sT6U▾
myanmarking
10/17/2018, 11:53 AMtddmonkey
10/17/2018, 1:43 PMtddmonkey
10/17/2018, 1:43 PMmichael aubert
10/17/2018, 2:15 PMtddmonkey
10/17/2018, 2:17 PM