You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2020/09/08 23:23:00 UTC
[jira] [Created] (GROOVY-9733) SC/STC: unary operator consistency
and error for unsupported operations
Eric Milles created GROOVY-9733:
-----------------------------------
Summary: SC/STC: unary operator consistency and error for unsupported operations
Key: GROOVY-9733
URL: https://issues.apache.org/jira/browse/GROOVY-9733
Project: Groovy
Issue Type: Bug
Reporter: Eric Milles
Unanswered items from GROOVY-9704:
Q1: SC adds support for unary +, - and ~ for the char type. Under STC, these all throw MissingMethodException, which is consistent with Character. Should SC have char removed from the 3 unary operator optimizations for consistency?
Q2: For the unsupported operation cases (~ on floating-point types, etc.) should STC be producing some error?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)