Skip to content

Commit

Permalink
Merged branch idea243.release into idea243.x
Browse files Browse the repository at this point in the history
  • Loading branch information
builduser committed Jan 24, 2025
2 parents 5ddde6b + 974288c commit 9234298
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ object LatestScalaVersions {
// Release candidates
//
// Scala LTS RC
val Scala_3_LTS_RC: ScalaVersion = Scala_3_3.withMinor("5-RC2")
val Scala_3_LTS_RC: ScalaVersion = Scala_3_3.withMinor("5-RC3")

// Scala Next RC
val Scala_3_Next_RC = new ScalaVersion(ScalaLanguageLevel.Scala_3_6, "4-RC1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ object ScParameterizedTypeElementAnnotator extends ElementAnnotator[ScParameteri
)(implicit
holder: ScalaAnnotationHolder
): Unit = {
if (!typeAware) return

val prefixType = element.typeElement.getTypeNoConstructor.toOption

val projSubstitutor = element.typeElement.`type`().toOption match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ object ScTypeBoundsOwnerAnnotator extends ElementAnnotator[ScTypeBoundsOwner] {

override def annotate(element: ScTypeBoundsOwner, typeAware: Boolean)
(implicit holder: ScalaAnnotationHolder): Unit = {
if (!typeAware) return

val typeParamClause = PsiTreeUtil.getParentOfType(element, classOf[ScTypeParamClause]).toOption
val isFunctionClause = typeParamClause.flatMap(_.parent).exists(_.is[ScFunction])

Expand Down

0 comments on commit 9234298

Please sign in to comment.