File tree 2 files changed +8
-12
lines changed
compiler/src/dotty/tools/dotc/typer
2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ trait ImportSuggestions:
158
158
// Candidates that are already available without explicit import because they
159
159
// are already provided by the context (imported or inherited) or because they
160
160
// are in the implicit scope of `pt`.
161
- val alreadyAvailableCandidates : Set [Symbol ] = {
161
+ lazy val alreadyAvailableCandidates : Set [Symbol ] = {
162
162
val wildProto = wildApprox(pt)
163
163
val contextualCandidates = ctx.implicits.eligible(wildProto)
164
164
val implicitScopeCandidates = ctx.run.nn.implicitScope(wildProto).eligible
Original file line number Diff line number Diff line change 1
- -- [E046] Cyclic Error: tests/neg/i11994.scala:3:18 --------------------------------------------------------------------
1
+ -- [E008] Not Found Error: tests/neg/i11994.scala:2:28 -----------------------------------------------------------------
2
+ 2 |implicit def foo[T <: Tuple.meow]: Unit = ??? // error
3
+ | ^^^^^^^^^^
4
+ | type meow is not a member of object Tuple
5
+ -- [E008] Not Found Error: tests/neg/i11994.scala:3:18 -----------------------------------------------------------------
2
6
3 |given [T <: Tuple.meow]: Unit = ??? // error
3
- | ^
4
- | Cyclic reference involving method given_Unit
5
- |
6
- | The error occurred while trying to compute the signature of given instance given_Unit
7
- | which required to compute the signature of type T
8
- | which required to compute the signature of given instance given_Unit
9
- |
10
- | Run with both -explain-cyclic and -Ydebug-cyclic to see full stack trace.
11
- |
12
- | longer explanation available when compiling with `-explain`
7
+ | ^^^^^^^^^^
8
+ | type meow is not a member of object Tuple
You can’t perform that action at this time.
0 commit comments