[BUG] sort function doesn't return an array of correct type
Abierto
bug
stdlib
- Lenguaje dominante
- Rust
- Estrellas
- 5.2k
- Forks
- 145
- Merge medio
- 5 d 3 h
- PR fusionados (30 d)
- 7
Descripción
**Describe the bug**
Newly added array `sort` and `sorted` return array of type `[Generic]`. This should be impossible. To fix this, we should add generics #978 .
**To Reproduce**
```
fun foo() {
return []
}
let a = foo() // `a` is of type `[Generic]`
```
**Expected behavior**
Clear error and a solution to use generics instead.
**Additional context**
#978 #966
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.