Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Using remixer with Kotlin -> annotation parameter error #155

Open
felislynx-silae opened this issue Jul 16, 2017 · 1 comment
Open

Using remixer with Kotlin -> annotation parameter error #155

felislynx-silae opened this issue Jul 16, 2017 · 1 comment

Comments

@felislynx-silae
Copy link

If i'll add Remixer annotation in kotlin fragment/activity this error appears:

error: Trying to use Variable annotations on wrong parameter, must be of type class java.lang.Float

@trevorhalvorson
Copy link

Using type Float? has been working for me:

@RangeVariableMethod(minValue = 6F, maxValue = 70F)
    fun setTitleTextSize(textSize: Float?) {
        if (textSize != null) {
            title_text.textSize = textSize
        }
    }

See Mapped Types

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants