From beeb773399679834010dda1386e6eedd0eb76662 Mon Sep 17 00:00:00 2001 From: Dmitrii Naumenko Date: Wed, 3 Apr 2024 09:46:22 +0200 Subject: [PATCH] change wildcard type parameter from _ to ? --- docs/_docs/reference/other-new-features/matchable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_docs/reference/other-new-features/matchable.md b/docs/_docs/reference/other-new-features/matchable.md index 234fdf03220c..f6c7673416eb 100644 --- a/docs/_docs/reference/other-new-features/matchable.md +++ b/docs/_docs/reference/other-new-features/matchable.md @@ -12,7 +12,7 @@ The Scala 3 standard library has a type [`IArray`](https://scala-lang.org/api/3. arrays that is defined like this: ```scala - opaque type IArray[+T] = Array[_ <: T] + opaque type IArray[+T] = Array[? <: T] ``` The `IArray` type offers extension methods for `length` and `apply`, but not for `update`; hence it seems values of type `IArray` cannot be updated.