Skip to content

Commit 1826b66

Browse files
author
Dean Wampler
committed
A comment change
1 parent 521bb37 commit 1826b66

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/script/scala/progscala3/typesystem/poly/PolymorphicFunctions.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ work(O2)(fas) // Returns: "<found: O2>"
3838
// tag::doesnotwork[]
3939
// This section doesn't appear in the book.
4040
// 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.
4142
val pf2a = [A] => (seq: Seq[A]) => (using n: Numeric[A]) =>
4243
seq.reduce((a,b) => n.times(a,b))
4344
val pf2b = [T] => (seq: Seq[T]) => (using Numeric[T]) => // anonymous disallowed

0 commit comments

Comments
 (0)