Skip to content

Commit 09f60f2

Browse files
committed
fix code-scanning alert
1 parent 18eede5 commit 09f60f2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ql/test/type/Test.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ string conc(Strings a, Strings b) { result = a + b }
1313
float floats(Floats a, Floats b) { result = a + b }
1414

1515
class Base extends string {
16-
Base() { this = ["foo"] }
16+
Base() { this = "foo" }
1717

1818
int foo() { result = 1 }
1919
}
2020

2121
class Sub extends Base {
22-
Sub() { this = ["bar"] }
22+
Sub() { this = "bar" }
2323

2424
int bar() { result = Base.super.foo() }
2525

ql/test/type/type.expected

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,13 @@
3737
| Test.qll:16:12:16:15 | this | Test.qll:15:1:19:1 | Base |
3838
| Test.qll:16:12:16:15 | this | Test.qll:15:1:19:1 | Base.Base |
3939
| Test.qll:16:12:16:15 | this | Test.qll:15:1:19:1 | Base.extends |
40-
| Test.qll:16:19:16:25 | Set | file://:0:0:0:0 | string |
41-
| Test.qll:16:20:16:24 | String | file://:0:0:0:0 | string |
40+
| Test.qll:16:19:16:23 | String | file://:0:0:0:0 | string |
4241
| Test.qll:18:15:18:20 | result | file://:0:0:0:0 | int |
4342
| Test.qll:18:24:18:24 | Integer | file://:0:0:0:0 | int |
4443
| Test.qll:22:11:22:14 | this | Test.qll:21:1:27:1 | Sub |
4544
| Test.qll:22:11:22:14 | this | Test.qll:21:1:27:1 | Sub.Sub |
4645
| Test.qll:22:11:22:14 | this | Test.qll:21:1:27:1 | Sub.extends |
47-
| Test.qll:22:18:22:24 | Set | file://:0:0:0:0 | string |
48-
| Test.qll:22:19:22:23 | String | file://:0:0:0:0 | string |
46+
| Test.qll:22:18:22:22 | String | file://:0:0:0:0 | string |
4947
| Test.qll:24:15:24:20 | result | file://:0:0:0:0 | int |
5048
| Test.qll:24:24:24:33 | Super | Test.qll:15:1:19:1 | Base |
5149
| Test.qll:24:24:24:39 | MemberCall | file://:0:0:0:0 | int |

0 commit comments

Comments
 (0)