My code piece : public struct Counts(dim:Int, pos: ValRail[ValHashMap[String,Int]](dim), neg:ValRail[ValHashMap[String,Int]](dim)) { static type Data = ValHashMap[String,Int]; public def this (dimension : Int ) { property(dimension, ValRail.make[Data](dim, (i:Int) => ValHashMap.make [String,Int](new HashMap[String,Int]())), ValRail.make[Data](dim, (i:Int) => ValHashMap.make [String,Int](new HashMap[String,Int]()))); } } Compile error : This or super cannot be used (implicitly or explicitly) in a constructor return type.
This code can be compiled correctly before tag 15544. Current version compiles wrong. Can anyone give me any hint ? Thanks Li Yan (李严) System Group, IBM China Research Lab Tel: 8610-58748060 Tieline: 11905-8060 Add: Building 19 Zhongguancun Software Park, 8 Dongbeiwang WestRoad, Haidian District, Beijing, 100094, P.R.China E-mail: liyan...@cn.ibm.com ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users