File tree 2 files changed +16
-1
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ object Types extends TypeUtils {
378
378
case tp : LambdaType => tp.resultType.unusableForInference || tp.paramInfos.exists(_.unusableForInference)
379
379
case WildcardType (optBounds) => optBounds.unusableForInference
380
380
case CapturingType (parent, refs) => parent.unusableForInference || refs.elems.exists(_.unusableForInference)
381
- case _ : ErrorType => true
381
+ case NoType | _ : ErrorType => true
382
382
case _ => false
383
383
catch case ex : Throwable => handleRecursive(" unusableForInference" , show, ex)
384
384
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