Skip to content

Commit

Permalink
Merge pull request #882 from xuwei-k/patch-1
Browse files Browse the repository at this point in the history
fix warning
  • Loading branch information
mkurz authored Jan 19, 2025
2 parents ff7df61 + 136d12c commit 5a5c2dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ package """ :+ packageName :+ """
val input = Input.String(s"object FT { def signature$signature }")
val obj = implicitly[Parse[Stat]].apply(input, dialect).get.asInstanceOf[Defn.Object]
val templ = obj.templ
val defdef = templ.stats.head.asInstanceOf[Decl.Def]
val defdef = templ.body.stats.head.asInstanceOf[Decl.Def]
defdef.paramClauseGroups.headOption.map(_.paramClauses.map(_.values)).getOrElse(Nil)
} catch {
case e: ParseException => Nil
Expand Down

0 comments on commit 5a5c2dc

Please sign in to comment.