File tree 2 files changed +16
-1
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -1041,7 +1041,7 @@ trait Implicits:
1041
1041
if (argument.isEmpty) i " missing implicit parameter of type $pt after typer at phase ${ctx.phase.phaseName}"
1042
1042
else i " type error: ${argument.tpe} does not conform to $pt${err.whyNoMatchStr(argument.tpe, pt)}" )
1043
1043
1044
- val usableForInference = ! pt.unusableForInference
1044
+ val usableForInference = pt.exists && ! pt.unusableForInference
1045
1045
&& (argument.isEmpty || ! argument.tpe.unusableForInference)
1046
1046
1047
1047
val result0 = if usableForInference then
Original file line number Diff line number Diff line change
1
+ //> using scala " 3.3.1"
2
+ //> using dep org.http4s::http4s-ember-client:1.0.0-M40
3
+ //> using dep org.http4s::http4s-ember-server:1.0.0-M40
4
+ //> using dep org.http4s::http4s-dsl:1.0.0-M40
5
+
6
+ // import cats.effect.*
7
+ // import cats.implicits.*
8
+
9
+ class Concurrent [F [_]]
10
+
11
+ class Test [F [_]: Concurren ]: // error
12
+ def hello = ???
13
+
14
+ object Test :
15
+ def apply [F [_]: Concurrent ] = new Test [F ]
You can’t perform that action at this time.
0 commit comments