Tsvetozar Bonev
03/12/2019, 10:22 AMlukaville
03/12/2019, 11:52 AMVinicius Carvalho
03/12/2019, 3:51 PMrunBlocking {
foo() //foo returns a value and is being captured by the lambda
}
Since runBlocking needs to return void, I get a compiler errorAndreasBackx
03/12/2019, 6:48 PMexceptionally {
it.printStackTrace()
}
But it complains Type mismatch. Required: Void! Found: Unit
. Shouldn't have Kotlin handled this properly or am I missing something?LeoColman
03/12/2019, 10:04 PMarmaxis
03/12/2019, 11:32 PM//Tasks.kt
abstract class Foo : Callable<Unit> {
override fun call() { bar() }
abstract fun bar()
}
//Manager.java
public class FooChild extends Tasks.Foo {
@Override public void bar() { //haha }
}
Class FooChild is highlighed as Error with message:
'call()' in 'Tasks.Foo' clashes with 'call()' in 'java.util.concurrent.Callable'; attempting to use incompatible return typesitepodmatt
03/13/2019, 3:04 AMjw
03/13/2019, 3:05 AMbbaldino
03/13/2019, 3:54 AMPaul Woitaschek
03/13/2019, 9:20 AMSebastian Keller
03/13/2019, 12:48 PMCPointer<BooleanVar>
without the use of the nativeHeap. I would like to create one on the stack, but everythin i've tried failed.
Currently im using this val flag = nativeHeap.alloc<BooleanVar>(); flag.usePinned { it.get().ptr /* <- CPointer<BooleanVar> */}
brian
03/13/2019, 4:11 PMrobstoll
03/13/2019, 8:55 PMAny?
into its non-nullable variant?
I would like to avoid something like: fun <T: Any> foo(t: T?)
Horv
03/14/2019, 8:58 AMdavid-wg2
03/14/2019, 9:31 AMAntero Duarte
03/14/2019, 12:52 PMIaroslav Postovalov
03/14/2019, 1:40 PM@JvmDefault
with Gradle?darych
03/14/2019, 2:33 PM[WARNING] Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
C:/Users/somebody/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.21/kotlin-stdlib-jdk8-1.3.21.jar (version 1.3)
C:/Users/somebody/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.2.41/kotlin-stdlib-1.2.41.jar (version 1.2)
C:/Users/somebody/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.2.41/kotlin-stdlib-jdk7-1.2.41.jar (version 1.2)
[WARNING] Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
In Maven dependencies I see only this with 1.2.41 version:
[INFO] +- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.3.21:compile
[INFO] | +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.2.41:compile
[INFO] | | \- org.jetbrains:annotations:jar:13.0:compile
[INFO] | \- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.2.41:compile
Smith
03/14/2019, 2:51 PMSmith
03/14/2019, 2:56 PMSmith
03/14/2019, 3:14 PMHorv
03/14/2019, 4:06 PMpoohbar
03/14/2019, 4:30 PMLeoColman
03/14/2019, 6:22 PMModel
class have a Factory
for itxenoterracide
03/14/2019, 7:05 PMHullaballoonatic
03/14/2019, 7:28 PMConnection
to not null?
private val Connection?.isUsable get() = this != null && !isClosed
Hasan
03/15/2019, 7:04 AMJan
03/15/2019, 8:16 AMRohit Singh
03/15/2019, 11:26 AMsealed class BaseViewEffect{
object ShowView : BaseViewEffect()
}
sealed class ChildViewEffect : BaseViewEffect {
}
anyone can help me to achieve inheritance for sealed classDavid Cuesta
03/15/2019, 1:22 PM