reject_assign_mismatch.mx raw

   1  // expected: cannot use value of type int64 as int32
   2  //
   3  // A variable of one type assigned to another must be an error in both
   4  // compilers; stage4 used to accept every mismatch (the assignment printed
   5  // whatever bits lined up).
   6  package main
   7  
   8  func main() {
   9  	var a int64 = 1
  10  	var b int32 = a
  11  	println(b)
  12  }
  13