Fix getType on ImplicitVarArgsSlice

It was not defined for built-in functions or for functions called via
a function variable.
This commit is contained in:
Owen Mansel-Chan
2024-05-07 12:10:27 +01:00
parent 0338ffd125
commit 9842445b52

View File

@@ -455,8 +455,8 @@ module Public {
CallNode getCallNode() { result = call }
override Type getType() {
exists(Function f | f = call.getTarget() |
result = f.getParameterType(f.getNumParameter() - 1)
exists(SignatureType t | t = call.getCall().getCalleeType() |
result = t.getParameterType(t.getNumParameter() - 1)
)
}