Feedback
Concrete arrays can now be used where interface arrays are expected
- Status
- Fixed
- Fixed in
- v26.8.4
- Source discussion
- https://forum.objo.dev/d/756-interfaces-and-arrays
- Last updated
- 2026-08-17
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Arrays whose concrete element type implements an interface should be accepted wherever an array of that interface is expected. This includes assignments, method arguments, return values, and AppendAll, allowing callers to preserve interface-based designs without introducing an unnecessary abstract superclass.