aboutsummaryrefslogtreecommitdiff
path: root/tests/variable/type/buildfile
blob: 372b0ad297cbb7a2e2c05bc14edbd1baea0cc7de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Variable typing.
#
[string] str1 = bar
str1 =+ foo
str1 += baz
print $str1

str2 = bar
[string] str2 =+ foo
str2 += baz
print $str2

#[string] str3 = foo
#[bool] str3 = false       # error: changing str3 type from string to bool

#[bool string] str3 = foo  # error: multiple variable types: bool, string

#[junk] jnk = foo          # error: unknown variable attribute junk


./: