[BUG] sort function doesn't return an array of correct type
Aberta
bug
stdlib
- Linguagem predominante
- Rust
- Estrelas
- 5.2k
- Forks
- 145
- Merge médio
- 5d 3h
- PRs com merge (30d)
- 7
Descrição
**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
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Avaliação
Esta issue ainda não foi avaliada.