char <-> Character

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

char <-> Character

daniil.ovchinnikov
Hi,

@groovy.transform.CompileStatic
def foo(char ch, Character character) {
    ch = character // [Static type checking] - Cannot assign value of type java.lang.Character to variable of type char
    character = ch // [Static type checking] - Cannot assign value of type char to variable of type java.lang.Character
}

More here https://issues.apache.org/jira/browse/GROOVY-7557.
Any updates on this?



Daniil Ovchinnikov
JetBrains