main.mx raw

   1  package main
   2  
   3  import . "math"
   4  
   5  // A dot import puts every exported name of math into this file's scope, so
   6  // declaring Abs here is two bindings for one name. go/types treats it as
   7  // shadowing and accepts it; the no-conflict rule must not.
   8  func Abs(x float64) (r float64) {
   9  	return 0
  10  }
  11  
  12  func main() {
  13  	println(Abs(1))
  14  }
  15