[ https://issues.apache.org/jira/browse/GROOVY-7847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326394#comment-15326394 ]
Paul King commented on GROOVY-7847: ----------------------------------- Yes, we treat Strings as (loosely) lists of chars for some scenarios but not all. This is one of the currently unsupported cases. We were going to add more support, e.g. see GROOVY-7432, but there are numerous tricky edge cases and we currently just encourage calling toSet or toList and then applying various subsequent methods. > Set casting from CharSequence yields invalid Set > ------------------------------------------------ > > Key: GROOVY-7847 > URL: https://issues.apache.org/jira/browse/GROOVY-7847 > Project: Groovy > Issue Type: Bug > Reporter: Dario Bertini > Priority: Minor > > groovy:000> 'abcc'.toSet() == ('abcc' as Set) > ===> false > groovy:000> 'abcc' as Set > ===> [a, b, c, c] -- This message was sent by Atlassian JIRA (v6.3.4#6332)