@@ -386,12 +386,15 @@ object SymDenotations {
386386 final def setParamssFromDefs (tparams : List [TypeDef [? ]], vparamss : List [List [ValDef [? ]]])(using Context ): Unit =
387387 setParamss(tparams.map(_.symbol), vparamss.map(_.map(_.symbol)))
388388
389- /** A pair consisting of type parameter symbols and value parameter symbol lists
390- * of this method definition, or (Nil, Nil) for other symbols.
389+
390+ /** The symbols of each type parameter list and value parameter list of this
391+ * method, or Nil if this isn't a method.
392+ *
393+ *
391394 * Makes use of `rawParamss` when present, or constructs fresh parameter symbols otherwise.
392395 * This method can be allocation-heavy.
393396 */
394- final def paramSymss (using ctx : Context ): ( List [TypeSymbol ], List [List [ TermSymbol ]]) =
397+ final def paramSymss (using ctx : Context ): List [List [Symbol ]] =
395398
396399 def recurWithParamss (info : Type , paramss : List [List [Symbol ]]): List [List [Symbol ]] =
397400 info match
@@ -412,17 +415,8 @@ object SymDenotations {
412415 case _ =>
413416 Nil
414417
415- try
416- val allParamss =
417- if rawParamss.isEmpty then recurWithoutParamss(info)
418- else recurWithParamss(info, rawParamss)
419- val result = info match
420- case info : PolyType => (allParamss.head, allParamss.tail)
421- case _ => (Nil , allParamss)
422- result.asInstanceOf [(List [TypeSymbol ], List [List [TermSymbol ]])]
423- catch case NonFatal (ex) =>
424- println(i " paramSymss failure for $symbol, $info, $rawParamss" )
425- throw ex
418+ if rawParamss.isEmpty then recurWithoutParamss(info)
419+ else recurWithParamss(info, rawParamss)
426420 end paramSymss
427421
428422 /** The denotation is completed: info is not a lazy type and attributes have defined values */
0 commit comments