amber-lang / amber-lang/amber

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

Abierto
#979 0 comentarios 0 reacciones 0 asignados Ver en GitHub
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.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.