We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 521bb37 commit 1826b66Copy full SHA for 1826b66
src/script/scala/progscala3/typesystem/poly/PolymorphicFunctions.scala
@@ -38,6 +38,7 @@ work(O2)(fas) // Returns: "<found: O2>"
38
// tag::doesnotwork[]
39
// This section doesn't appear in the book.
40
// The first syntax here may be the first supported in a subsequent Scala 3 release.
41
+// As of Scala 3.1.0, none of these variants compile.
42
val pf2a = [A] => (seq: Seq[A]) => (using n: Numeric[A]) =>
43
seq.reduce((a,b) => n.times(a,b))
44
val pf2b = [T] => (seq: Seq[T]) => (using Numeric[T]) => // anonymous disallowed
0 commit comments