Rust: Add test with type inference inconsistency

This commit is contained in:
Simon Friis Vindum
2026-01-27 13:11:04 +01:00
parent fa59a8ae24
commit aae5333325
4 changed files with 621 additions and 514 deletions

View File

@@ -31,7 +31,8 @@ query predicate illFormedTypeMention(TypeMention tm) {
}
query predicate nonUniqueCertainType(AstNode n, TypePath path) {
Consistency::nonUniqueCertainType(n, path, _)
Consistency::nonUniqueCertainType(n, path, _) and
n.fromSource() // Only include inconsistencies in the source.
}
int getTypeInferenceInconsistencyCounts(string type) {