fn main() {
    mut str := 'test'
    str = 1
    str *= 'world'

    mut num := 1
    num /= 'wrong'
    num = -'welp'
    _ = 2

    ch := chan string{}
    mut obj := 9
    obj = <-ch

    xy = 2

    _ += 1
}

const shouldnot_modify = 2

fn main2() {
    shouldnot_modify -= 1
    shouldnot_modify++
    a := 1
    a = 0
    a++
    a--
}

---

(error "cannot assign to `str`: expected `string`, not `int`" [2,4]-[2,11])
(error "undefined operation `string` * `string`" [3,8]-[3,10])
(error "mismatched types `int` and `string`" [6,4]-[6,18])
(error "cannot assign to `num`: expected `int`, not `void`" [7,10]-[7,11])
(error "cannot assign to `obj`: expected `int`, not `string`" [12,10]-[12,12])
(error "undefined ident: `xy` (use `:=` to declare a variable)" [14,4]-[14,6])
(error "cannot modify blank `_` identifier" [16,4]-[16,5])
(error "cannot modify constant `shouldnot_modify`" [22,4]-[22,20])
(error "cannot modify constant `shouldnot_modify`" [23,4]-[23,20])
(error "`a` is immutable, declare it with `mut` to make it mutable" [25,4]-[25,5])
(error "`a` is immutable, declare it with `mut` to make it mutable" [26,4]-[26,5])
(error "`a` is immutable, declare it with `mut` to make it mutable" [27,4]-[27,5])