Files
codeql/java/ql/test/kotlin/library-tests/parameter-defaults/defaults.expected
Chris Smowton 1fe9e8457f Kotlin: Fix varargs dataflow, and varargs default handling
Dataflow requires accounting for the fact that the varargs parameter isn't necessarily last in the parameter list in a couple more places. Default handling just requires that if the only null parameter is the varargs argument, and it has no default value, then no $default method is required-- the caller is expected to simply pass nothing (at QL
/ source level) or an empty array (at JVM level).
2022-10-21 11:14:41 +01:00

19 lines
1.3 KiB
Plaintext

| test.kt:5:3:7:3 | f | test.kt:5:3:7:3 | f$default |
| test.kt:34:14:36:3 | f | test.kt:34:14:36:3 | f$default |
| test.kt:68:1:80:1 | TestConstructor | test.kt:68:1:80:1 | TestConstructor |
| test.kt:86:5:88:5 | f | test.kt:86:5:88:5 | f$default |
| test.kt:106:7:108:7 | f | test.kt:106:7:108:7 | f$default |
| test.kt:124:3:126:3 | f | test.kt:124:3:126:3 | f$default |
| test.kt:135:3:135:43 | testReturn | test.kt:135:3:135:43 | testReturn$default |
| test.kt:145:3:147:3 | f | test.kt:145:3:147:3 | f$default |
| test.kt:158:3:158:35 | f | test.kt:158:3:158:35 | f$default |
| test.kt:159:12:159:44 | g$main | test.kt:159:12:159:44 | g$main$default |
| test.kt:160:13:160:45 | h | test.kt:160:13:160:45 | h$default |
| test.kt:161:11:161:43 | i | test.kt:161:11:161:43 | i$default |
| test.kt:171:3:171:97 | f | test.kt:171:3:171:97 | f$default |
| test.kt:179:3:179:46 | f | test.kt:179:3:179:46 | f$default |
| test.kt:180:3:180:34 | f | test.kt:180:3:180:34 | f$default |
| test.kt:184:1:188:1 | varargsTest | test.kt:184:1:188:1 | varargsTest$default |
| test.kt:199:1:201:1 | varargsTestOnlySinkVarargs | test.kt:199:1:201:1 | varargsTestOnlySinkVarargs$default |
| test.kt:212:1:215:1 | varargsTestOnlySinkRegularArgs | test.kt:212:1:215:1 | varargsTestOnlySinkRegularArgs$default |