From a718b5c587decf8dc9f5092afda5ef6ae7fae0e5 Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Mon, 21 Oct 2024 14:57:03 +0200 Subject: [PATCH] [docs] Context bounds in polymorphic functions targets 3.7 --- docs/_docs/reference/contextual/context-bounds.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/_docs/reference/contextual/context-bounds.md b/docs/_docs/reference/contextual/context-bounds.md index 60357b3f098d..c70d9d234597 100644 --- a/docs/_docs/reference/contextual/context-bounds.md +++ b/docs/_docs/reference/contextual/context-bounds.md @@ -131,7 +131,7 @@ done automatically under `-rewrite`. ## Context Bounds for Polymorphic Functions -From Scala 3.6 on, context bounds can also be used in polymorphic function types and polymorphic function literals: +From Scala 3.7 on, context bounds can also be used in polymorphic function types and polymorphic function literals: ```scala type Comparer = [X: Ord] => (x: X, y: X) => Boolean @@ -208,4 +208,4 @@ The syntax for abstract type members is generalized as follows to allow context ```scala TypeDef ::= id [TypeParamClause] TypeAndCtxBounds -``` \ No newline at end of file +```