aboutsummaryrefslogtreecommitdiff
path: root/tests/app/LocalEnum.slul
blob: 3d257b669ff4a165d96fcedea67a9646ebe6023a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

only
    Sunny
    Cloudy
    Rainy
    Snowy
end

# TODO initialization of fields from the value lines
#Bool clear_sky

# TODO not possible because typescopes aren't working yet
#func has_precipitation
#return
#    Bool precipitation
#code
#    return this == Rainy or this == Snowy
#end

func is_safe_weather
return
    Bool safe
code
    return True
end