File tree 1 file changed +3
-3
lines changed
scaladoc/src/dotty/tools/scaladoc/tasty
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,9 +70,9 @@ trait InkuireSupport:
70
70
extension (tpe : TypeRepr )
71
71
def asInkuire (vars : Set [String ]): Inkuire .TypeLike = inner(tpe, vars)
72
72
73
- private def genSyntheticTypeArgs (n : Int ) =
73
+ private def genSyntheticTypeArgs (n : Int , resSymbol : Symbol ) =
74
74
1 .to(n).map { i =>
75
- val uuid = s " synthetic-arg $i${Random .nextString( 10 ) }"
75
+ val uuid = s " synthetic-arg $i${resSymbol.hashCode }"
76
76
val name = s " X $i"
77
77
Inkuire .Type (
78
78
name = Inkuire .TypeName (name),
@@ -85,7 +85,7 @@ trait InkuireSupport:
85
85
// TODO [Inkuire] Type bounds (other than just HKTs)
86
86
val name = argument.symbol.normalizedName
87
87
val normalizedName = if name.matches(" _\\ $\\ d*" ) then " _" else name
88
- val params = genSyntheticTypeArgs(typeVariableDeclarationParamsNo(argument))
88
+ val params = genSyntheticTypeArgs(typeVariableDeclarationParamsNo(argument), argument.symbol )
89
89
val res = Inkuire .Type (
90
90
name = Inkuire .TypeName (normalizedName),
91
91
itid = argument.symbol.itid,
You can’t perform that action at this time.
0 commit comments