Issue Description
Primitive int Readonly constant numbers when passed to the toString method as radix parameter creates this error. It is expecting the object to be also Readonly Type.
How to reproduce
Create an object of type Immutable or Mutable and add 2 toString functions (function overloading) differentiated by an int radix parameter. Call the toString with a constant number as a radix parameter inside the other toString function without.
Screen Shot / Recording
Sample Minimum test case code
import qual.Immutable;
@Immutable
public final class Demo {
// private final @Immutable int value = 123;
public @Immutable String toString() {
return toString(10);
}
public @Immutable String toString(int radix) {
return "Hello";
// Usually it would be calling a function like this
// return Integer.toString(this.value, radix);
}
}
Issue Description
How to reproduce
Screen Shot / Recording
Sample Minimum test case code