Skip to content

Commit

Permalink
change wildcard type parameter from _ to ?
Browse files Browse the repository at this point in the history
  • Loading branch information
unkarjedy authored Apr 3, 2024
1 parent 1205601 commit beeb773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_docs/reference/other-new-features/matchable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit beeb773

Please sign in to comment.