Always use source declarations (i.e, raw types) when naming types in tests

This commit is contained in:
Chris Smowton
2021-06-04 15:10:57 +01:00
parent e8acfec070
commit 617201930d

View File

@@ -293,7 +293,7 @@ string getShortNameIfPossible(Type t) {
if t instanceof RefType
then
exists(RefType replaced, string nestedName |
replaced = replaceTypeVariable(t) and
replaced = replaceTypeVariable(t).getSourceDeclaration() and
nestedName = replaced.nestedName().replaceAll("$", ".")
|
if isImportable(getRootSourceDeclaration(t))