File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
ql/test/library-tests/expressions Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ protected ExplicitArrayCreation(ExpressionNodeInfo info) : base(info.SetKind(Exp
1717
1818 protected abstract ArrayTypeSyntax TypeSyntax { get ; }
1919
20- public abstract InitializerExpressionSyntax Initializer { get ; }
20+ public abstract InitializerExpressionSyntax Initializer { get ; }
2121
2222 protected override void PopulateExpression ( TextWriter trapFile )
2323 {
@@ -48,7 +48,7 @@ protected override void PopulateExpression(TextWriter trapFile)
4848 ExprKind . INT_LITERAL ,
4949 this ,
5050 child ,
51- false ,
51+ true ,
5252 size . ToString ( ) ) ;
5353
5454 new Expression ( info ) ;
Original file line number Diff line number Diff line change 1+ | expressions.cs:168:27:168:44 | array creation of type Object[] | expressions.cs:168:27:168:44 | 1 | true |
2+ | expressions.cs:409:23:409:65 | array creation of type Int32[,] | expressions.cs:409:23:409:65 | 3 | true |
3+ | expressions.cs:409:23:409:65 | array creation of type Int32[,] | expressions.cs:409:23:409:65 | 3 | true |
Original file line number Diff line number Diff line change 1+ /**
2+ * @name Test for array creations
3+ */
4+
5+ import csharp
6+
7+ private boolean isImplicit ( Expr expr ) {
8+ if expr .isImplicit ( ) then result = true else result = false
9+ }
10+
11+ from ArrayCreation ac , Expr expr
12+ where ac .isImplicitlySized ( ) and not ac .isImplicitlyTyped ( ) and expr = ac .getALengthArgument ( )
13+ select ac , expr , isImplicit ( expr )
You can’t perform that action at this time.
0 commit comments