New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cm.reflect(object) doesn't properly work for value classes #6179
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6179?orig=1 |
@xeno-by said: |
@xeno-by said: |
@xeno-by said: |
@xeno-by said: |
@paulp said: |
@xeno-by said: |
@paulp said: See BoxesRunTime.java for the implementations, generated from Cleanup.scala. |
@xeno-by said: |
@xeno-by said: |
@paulp said: def primitiveInfixMethodName(name: Name): TermName = name match {
case OR => takeOr
case XOR => takeXor
case AND => takeAnd
case EQ => testEqual
case NE => testNotEqual
case ADD => add
case SUB => subtract
case MUL => multiply
case DIV => divide
case MOD => takeModulo
case LSL => shiftSignedLeft
case LSR => shiftLogicalRight
case ASR => shiftSignedRight
case LT => testLessThan
case LE => testLessOrEqualThan
case GE => testGreaterOrEqualThan
case GT => testGreaterThan
case ZOR => takeConditionalOr
case ZAND => takeConditionalAnd
case _ => NO_NAME
}
/** Postfix/prefix, really.
*/
def primitivePostfixMethodName(name: Name): TermName = name match {
case UNARY_! => takeNot
case UNARY_+ => positive
case UNARY_- => negate
case UNARY_~ => complement
case `toByte` => toByte
case `toShort` => toShort
case `toChar` => toCharacter
case `toInt` => toInteger
case `toLong` => toLong
case `toFloat` => toFloat
case `toDouble` => toDouble
case _ => NO_NAME
} |
@xeno-by said: |
The text was updated successfully, but these errors were encountered: