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/typer/TypeAssigner.scala
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -299,12 +299,12 @@ trait TypeAssigner {
299
299
else fntpe.resultType
300
300
else
301
301
errorType(i"wrong number of arguments at ${ctx.phase.prev} for $fntpe: ${fn.tpe}, expected: ${fntpe.paramInfos.length}, found: ${args.length}", tree.srcPos)
302
-
case t if args.isEmpty =>
303
-
// NOTE this case is necessary when loading the stdlib from Tasty. Our extensions are compiled with stdlib loaded
304
-
// from Scala2 classfiles while they are loaded with stdlib loaded from Tasty. This results in `def toString` being
305
-
// typed as MethodType in the first case and ExprType in the second case. In the second case (and, I think, only then)
306
-
// we need to handle ExprType being present here.
307
-
t
302
+
//case t if args.isEmpty =>
303
+
// // NOTE this case is necessary when loading the stdlib from Tasty. Our extensions are compiled with stdlib loaded
304
+
// // from Scala2 classfiles while they are loaded with stdlib loaded from Tasty. This results in `def toString` being
305
+
// // typed as MethodType in the first case and ExprType in the second case. In the second case (and, I think, only then)
306
+
// // we need to handle ExprType being present here.
307
+
// t
308
308
case t =>
309
309
if (ctx.settings.Ydebug.value) newFatalError("").printStackTrace()
0 commit comments