Closed GreasySlug closed 1 year ago
Arrays can be declared with length specifications The compilation succeeds, but a Write error is received
Write error
[Int; 1]
[1; 1]
Above is success, below is error
Write error: 既存の接続はリモート ホストに強制的に切断されました。 (os error 10054) error: process didn't exit successfully: target\debug\erg.exe (exit code: 1)
target\debug\erg.exe
No response
Erg 0.6.2-nightly.1
Python3.11.x
Windows 10
[x; n] is a shorthand for [x, x, x, ...].
[x; n]
[x, x, x, ...]
i.e. [Int; 2] == [Int, Int], [1; 2] == [1, 1]
[Int; 2] == [Int, Int]
[1; 2] == [1, 1]
[1; 2] does not work properly, I fixed.
[1; 2]
Describe the bug?
Arrays can be declared with length specifications The compilation succeeds, but a
Write error
is receivedReproducible code
Expected result
Above is success, below is error
Actual result
Write error: 既存の接続はリモート ホストに強制的に切断されました。 (os error 10054) error: process didn't exit successfully:
target\debug\erg.exe
(exit code: 1)Additional context
No response
Erg version
Erg 0.6.2-nightly.1
Python version
Python3.11.x
OS
Windows 10