You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[info] compiling 1Scala source to /Users/rssh/tests/dotty/bad-infix-extensions/target/scala-3.3.2-RC1-bin-SNAPSHOT/classes ...
[error] -- [E008] NotFoundError:/Users/rssh/tests/dotty/bad-infix-extensions/src/main/scala/x/X.scala:24:12
[error] 24| create + x
[error] | ^^^^^^^^
[error] | value + is not a member of x.CB[Int].
[error] |An extension method was tried, but could not be fully constructed:
[error] |
[error] | {
[error] |valx$1$proxy1: x.WrapperConvert[x.CB, x.CB] =
[error] | x.WrapperConvert.identityConvert[x.CB]
[error] | {
[error] | {
[error] |def$anonfun(fx: x.CB[Any]):Any=
[error] | {
[error] | x.cnAwait[Any](x$1$proxy1.apply[Any](fx))
[error] | }
[error] | closure($anonfun:Conversion[x.CB[Any], Any])
[error] | }
[error] | }
[error] | }.apply(create)
[warn] -- [E174] SyntaxWarning:/Users/rssh/tests/dotty/bad-infix-extensions/src/main/scala/x/X.scala:15:92
[warn] 15|transparent inlinegivenconvertX[F[_],X](usingWrapperConvert[F,CB]):Conversion[F[X],X] = {
[warn] | ^
[warn] |Aninlinegivenaliaswith a function value as right-hand side can significantly increase
[warn] |generated code size. You should either drop the `inline` or rewrite the givenwith an
[warn] |explicit `apply` method.
[warn] 16| fx => cnAwait(summon[WrapperConvert[F,CB]](fx))
[warn] 17|}
[warn] |
[warn] | longer explanation available when compiling with`-explain`
[warn] one warning found
[error] one error found
Expectation
Should be compiled.
Note, that this is compiled with 3.3.0
The text was updated successfully, but these errors were encountered:
dwijnand
changed the title
compiler can't construct extension method via implicit conversion (regression).
Can't construct extension method via implicit conversion
Jun 27, 2023
Compiler version
3.3.2-RC1-bin-SNAPSHOT
(as for master branch from 2023-06-26)
Minimized code
Output
Expectation
Should be compiled.
Note, that this is compiled with 3.3.0
The text was updated successfully, but these errors were encountered: