Closed arnetheduck closed 4 months ago
Min repro
var a: (array[0, void], )
!nim c
var a: (array[0, void], )
0 bytes (0 bytes)
```cpp
```
2024-03-31T16:50:26
2024-03-31T16:50:26
0 bytes (0 bytes)
```cpp
```
2024-03-31T16:50:26
2024-03-31T16:50:27
0 bytes (0 bytes)
```cpp
```
2024-03-31T16:50:27
2024-03-31T16:50:27
0 bytes (0 bytes)
```cpp
```
2024-03-31T16:50:30
2024-03-31T16:50:30
0 bytes (0 bytes)
```cpp
```
2024-03-31T16:50:33
2024-03-31T16:50:33
0 bytes (0 bytes)
```cpp
```
2024-03-31T16:50:35
2024-03-31T16:50:35
0 bytes (0 bytes)
```cpp
```
2024-03-31T16:50:37
2024-03-31T16:50:37
11.4.0
14.0.0
19.1
2024-03-31T16:50:00Z
2
nim c --run -d:nimDebug -d:nimDebugDlOpen -d:ssl -d:nimDisableCertificateValidation --forceBuild:on --colors:off --verbosity:0 --hints:off --lineTrace:off --nimcache:/home/runner/work/Nim/Nim --out:/home/runner/work/Nim/Nim/temp /home/runner/work/Nim/Nim/temp.nim
:robot: Bug found in 15 minutes
bisecting 7
commits at 0
commits per second
An array of void type is just not allowed[^1],
so the only thing that shall be improved is the error message.
[^1]: array[0, void]
will gives Error: invalid type: 'void' in this context: 'array[0, void]'
, that's, the code above is invalid.
Description
Nim Version
1.6, devel
Current Output
Expected Output
No response
Possible Solution
No response
Additional Information
No response