amber-lang / amber-lang/amber

[BUG] sort function doesn't return an array of correct type

Aberta
#979 0 comentários 0 reações 0 responsáveis Ver no GitHub
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.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.