mirror of
https://github.com/github/codeql.git
synced 2026-03-31 04:38:18 +02:00
Correctly deal with generic types
This commit is contained in:
@@ -241,8 +241,10 @@ module ModelValidation {
|
||||
|
||||
string getIncorrectConstructorSummaryOutput() {
|
||||
exists(string namespace, string type, string name, string output |
|
||||
type = name or
|
||||
type = name + "<" + any(string s)
|
||||
|
|
||||
summaryModel(namespace, type, _, name, _, _, _, output, _, _, _) and
|
||||
type = name and
|
||||
output.matches("ReturnValue%") and
|
||||
result =
|
||||
"Constructor model for " + namespace + "." + type +
|
||||
|
||||
Reference in New Issue
Block a user