Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: X10 2.0.5
-
Fix Version/s: None
-
Component/s: Class Libraries
-
Labels:None
-
Number of attachments :
Description
I would the attached program to work.
/Users/sjfink/work/x10-trunk/x10.dist/samples/x.x10:15: Cannot cast expression to type.
Expression: c
Expression type: x10.lang.Char
To type: x10.lang.Byte
/Users/sjfink/work/x10-trunk/x10.dist/samples/x.x10:16: Cannot cast expression to type.
Expression: c
Expression type: x10.lang.Char{self==c}
To type: x10.lang.Short
/Users/sjfink/work/x10-trunk/x10.dist/samples/x.x10:17: Cannot cast expression to type.
Expression: c
Expression type: x10.lang.Char
To type: x10.lang.Int
/Users/sjfink/work/x10-trunk/x10.dist/samples/x.x10:18: Cannot cast expression to type.
Expression: c
Expression type: x10.lang.Char{self==c}
To type: x10.lang.Long
Issue Links
- is related to
-
XTENLANG-1253
Must switch/case statements all need to have the same integral type?
-
-
XTENLANG-1146
Fully implement coercion/conversion operations between all sensible pairs of built-in primitives
-
This is an issue with the class libraries (Char.x10).