You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/src/dotty/tools/dotc/transform/TreeChecker.scala
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ package dotty.tools.dotc
2
2
packagetransform
3
3
4
4
importcore.Names.Name
5
+
importcore.NameOps._
5
6
importcore.DenotTransformers._
6
7
importcore.SymDenotations._
7
8
importcore.Contexts._
@@ -751,10 +752,12 @@ object TreeChecker {
751
752
case _ =>
752
753
"??"
753
754
}
754
-
if (ctx.mode.isExpr &&
755
-
!tree.isEmpty &&
756
-
!isPrimaryConstructorReturn &&
757
-
!pt.isInstanceOf[FunOrPolyProto])
755
+
if ctx.mode.isExpr
756
+
&& tree.isEmpty
757
+
&& isPrimaryConstructorReturn
758
+
&& pt.isInstanceOf[FunOrPolyProto]
759
+
&&!(ctx.settings.Yscala2Stdlib.value && tree.symbol.name.endsWith(nme.specializedTypeNames.suffix.toString)) // FIXME: these symbols should not be in the function classes
0 commit comments