https://kotlinlang.org logo
#compose
Title
# compose
p

Pawel

08/08/2021, 12:51 PM
Hello, I am getting this warning when I a compile a brand new android project that uses compose 1.0.1 and kotlin 1.5.21:
Copy code
w: ATTENTION!
This build uses unsafe internal compiler arguments:

-XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes

This mode is not recommended for production use,
as no stability/compatibility guarantees are given on
compiler or generated code. Use it at your own risk!
I would like to use compose in production and I am just wondering if I should be worried about this.
m

Michael Paus

08/08/2021, 1:08 PM
Shouldn’t this be 1.5.21 for 1.0.1?
p

Pawel

08/08/2021, 1:09 PM
Yes correct it is 1.5.21
Ive corrected it now
The warning is still there. Should this be a concern ?
z

Zach Klippenstein (he/him) [MOD]

08/08/2021, 4:21 PM
I don’t think you need to be concerned. This is the experimental syntax feature that allows you to write
content: @Composable () -> Unit
instead of
content: @Composable() () -> Unit
. I don’t believe it has any effect on behavior or bytecode.
3 Views