exaloop / exaloop/codon

Static[int] can't be used in dict, list or tuple

Open
#702 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16.8k
Forks
603
Avg merge
4d 23h
Merged PRs (30d)
6

Description

Static[int] can't be used in dict, list or tuple:

```python
int_to_static_int = {i: Static[i] for i in range(1, 21)}
```

```python
test.codon:1 (32-33): error: expected 'int', 'bool' or 'str'
```

```python
int_to_static_int = [Static[i] for i in range(1, 21)]
```

```python
test.codon:1 (32-33): error: expected 'int', 'bool' or 'str'
```

```python
int_to_static_int = (Static[i] for i in range(1, 21))
```

```python
test.codon:1 (32-33): error: expected 'int', 'bool' or 'str'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.