Changeset 2316 for cobra/trunk/Source/Expr.cobra
- Timestamp:
- 03/14/10 06:45:43 (2 years ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Expr.cobra (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Expr.cobra
r2304 r2316 1204 1204 if _target.isKindOf(.compiler.typeType) 1205 1205 if _target inherits IPotentialTypeExpr and (pt = (_target to IPotentialTypeExpr).potentialType) 1206 _transformTo(TypeExpr(.token, ArrayType(pt)))1207 return 1206 _transformTo(TypeExpr(.token, .typeProvider.arrayType(pt to !))) 1207 return 1208 1208 else 1209 1209 .throwError('Unknown array type.') … … 2838 2838 2839 2839 2840 class ArrayLit 2841 is partial 2842 inherits SequenceLit 2840 class ArrayLit inherits SequenceLit is partial 2843 2841 2844 2842 # CC: should just inherit this because no initializers are defined … … 2847 2845 2848 2846 def _makeTypeWith(type as IType) as IType is override 2849 return ArrayType(type)2847 return .typeProvider.arrayType(type) 2850 2848 2851 2849 get brackets as List<of String> is override



