https://kotlinlang.org logo
n

n3o59hf

02/04/2016, 2:59 PM
Hello! I just updated old project to 1.0-rc and I have problem with one of java libraries - it defines
public int length
and
public int length()
in same class. Kotlin does not allow function invocation:
Copy code
Error:(468, 33) Gradle: Expression 'length' cannot be invoked as a function. The function invoke() is not found
nor access value:
Copy code
(469, 34): Overload resolution ambiguity: 
public final var length: <http://kotlin.Int|kotlin.Int> defined in com.badlogic.gdx.utils.StringBuilder
public open val length: <http://kotlin.Int|kotlin.Int> defined in com.badlogic.gdx.utils.StringBuilder
. Any workarounds for that?