Cal Swart/Watson/i...@ibmus wrote on 11/11/2009 02:04:59 PM:

> 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}"

Did you mean

return ["0"];

?
        Igor
-- 
Igor Peshansky  (note the spelling change!)
IBM T.J. Watson Research Center
XJ: No More Pain for XML's Gain (http://www.research.ibm.com/xj/)
X10: Parallel Productivity and Performance (http://x10.sf.net/)


------------------------------------------------------------------------------
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
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to