1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: if smartcast part 2 (#5754)

This commit is contained in:
Daniel Däschle
2020-07-08 15:46:58 +02:00
committed by GitHub
parent 7ad03e9d6a
commit 5ea17ad2d4
15 changed files with 67 additions and 88 deletions

View File

@ -33,8 +33,7 @@ fn wait() {
fn (l Lander) land(w World) {
if w is Mars {
m := w as Mars
for m.dust_storm() {
for it.dust_storm() {
wait()
}
}