The error message says that it is trying to convert a ValRail of Int's
(each of which has the value 0) of length 1 to a ValRail of String and
does not know how to do so.
(Note the return type of the method is ValRail[[String].)
Cal Swart wrote:
> I am getting this error message and not sure what to do. Can anyone help?
>
> public def getArrayProperty(key: String): ValRail[String] throws
> Exception {
> return [0];
> }
>
> Error message:
>
> Cannot implicitly convert expression of type "x10.lang.ValRail
> [x10.lang.Int{self==0}] {self.x10.lang.ValRail#length==1}" to type
> "x10.lang.ValRail[x10.lang.String]".
>
>
> public def getArrayProperty(key: String): ValRail[String](1) throws
> Exception {
> return [0];
> }
>
> Error message:
>
> Cannot implicitly convert expression of type "x10.lang.ValRail
> [x10.lang.Int{self==0}] {self.x10.lang.ValRail#length==1}" to type
> "x10.lang.ValRail[x10.lang.String]{self.x10.lang.ValRail#length==1}"
>
> Cal
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> X10-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
>
>
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users