We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74fce2e + b7103fb commit c809a55Copy full SHA for c809a55
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -1161,7 +1161,7 @@ trait Implicits { self: Typer =>
1161
err.userDefinedErrorString(
1162
raw,
1163
pt.typeSymbol.typeParams.map(_.name.unexpandedName.toString),
1164
- pt.argInfos))
+ pt.widenExpr.argInfos))
1165
1166
def hiddenImplicitsAddendum: String = arg.tpe match {
1167
case fail: SearchFailureType =>
tests/neg/i6826.scala
@@ -0,0 +1,5 @@
1
+class Foo {
2
+ inline def foo[T](implicit ct: =>scala.reflect.ClassTag[T]): Unit = Unit
3
+ type U
4
+ foo[U] // error
5
+}
0 commit comments