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
adaptNoArgs would do an implicit argument search only if the result type
conformed to the expected type. scala#3252 shows that this needs to be revised.
[info] Running dotty.tools.dotc.Main-d out Test.scala -classpath scala-2.12/dotty-library_2.12-0.4.0-bin-SNAPSHOT-nonbootstrapped.jar
--Error: tests/allan/Test.scala:3:44------------------------------------------3| results.map(r =>if (cond) r else0).sum
|^|no implicit argument of typescala.math.Numeric[B] found for parameter num of method sum in traitTraversableOnce
The text was updated successfully, but these errors were encountered: