dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 0 forks source link

"Used before assigned" for global #216

Closed dplassgit closed 1 year ago

dplassgit commented 1 year ago
q = new DList // sets head to null

while q.head { // gives error
}

Note, if it's in a proc it's fine...

dplassgit commented 1 year ago

I can't repro this.