goplus / gop

The Go+ programming language is designed for engineering, STEM education, and data science. Our vision is to enable everyone to become a builder of the digital world.
https://goplus.org
Apache License 2.0
8.95k stars 547 forks source link

goroutine compile error? #433

Closed zct closed 4 years ago

zct commented 4 years ago

` j := 0

arr := [1, 3, 5, 7, 11, 13, 17]

i := 0 for i = 0; i < len(arr); i++ { go func () { for j = 0; j < len(arr); j++ { println(j) } }() } `

use qrun compile this program, get error information

xushiwei commented 4 years ago

https://github.com/goplus/gop/issues/277

xushiwei commented 4 years ago

https://github.com/goplus/gop/pull/524