// expected: cannot concatenate value of type // // '|' concatenates when EITHER side is text and is the bitwise OR otherwise, so // a text/other MIX is a type error. stage4 emitted the concatenation anyway and // clang rejected the module with // // '%t7' defined with type 'i64' but expected '{ ptr, i64, i64 }' // %cc4 = extractvalue {ptr, i64, i64} %t7, 0 // // which names no source line, no type and no operator. The fix reports the mix // where it is written, and points at .String(), which is the idiom this tree // uses for every builtin (string and []byte are one type in Moxie, so TextType // covers both spellings and `"a" | []byte("b")` stays legal). package main func main() { var a int64 = 5 println("x=" | a) }