Klaas Kabini
04/02/2020, 12:36 PMtypealias ComposableFunction = @Composable() () -> Unit
instead of just doing this. But the AS does not allow this
typealias ComposableFunction = @Composable () -> Unit
Andrew Neal
04/02/2020, 1:41 PM@Composable
.Louis Pullen-Freilich [G]
04/02/2020, 2:04 PMallProjects
block in the root `build.gradle`:
allprojects {
... tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += '-XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes'
}
}
}
Klaas Kabini
04/02/2020, 2:05 PMromainguy
04/02/2020, 3:44 PMLeland Richardson [G]
04/03/2020, 3:12 PMcompose true
flag, so it should actually compile, but android studio maybe won’t like it. Hope that makes sense.