//ww:error "~ on non-integer" package main; export fn main() i32 = { let a: str = "x"; let n: i32 = (~a): i32; return n; };