2020-05-19 22:01:19 +03:00
|
|
|
// Adding the `mut` keyword makes a function variable mutable.
|
2020-07-31 02:37:01 +03:00
|
|
|
function main(mut a: bool) {
|
|
|
|
a = true;
|
2020-05-19 22:01:19 +03:00
|
|
|
|
2020-08-17 05:14:26 +03:00
|
|
|
console.assert(a == true);
|
2020-05-19 22:01:19 +03:00
|
|
|
}
|