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

Reply via email to