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.
1 parent cba756d commit b7103fbCopy full SHA for b7103fb
compiler/src/dotty/tools/dotc/typer/Implicits.scala
@@ -1167,7 +1167,7 @@ trait Implicits { self: Typer =>
1167
err.userDefinedErrorString(
1168
raw,
1169
pt.typeSymbol.typeParams.map(_.name.unexpandedName.toString),
1170
- pt.argInfos))
+ pt.widenExpr.argInfos))
1171
1172
def hiddenImplicitsAddendum: String = arg.tpe match {
1173
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