fail_type_mismatch.go raw

   1  package main
   2  
   3  func worker(x int32) {
   4  	println(x)
   5  }
   6  
   7  func main() {
   8  	spawn(worker, float64(3.14)) // ERROR: type mismatch, expects int32
   9  }
  10