reject_string_as_int.mx raw

   1  // expected: cannot use value of type untyped string as int32
   2  //
   3  // stage4 checked no assignability at all: this declaration compiled, printed
   4  // 2288828 and then segfaulted. Legacy reported it through go/types only after
   5  // the string/[]byte error filter stopped swallowing every "cannot use ...
   6  // string ..." message.
   7  package main
   8  
   9  func main() {
  10  	var x int32 = "s"
  11  	println(x)
  12  }
  13