Source file test/fixedbugs/bug307.go

     1  // compile
     2  
     3  // Copyright 2010 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Valid program, gccgo reported an error.
     8  // bug307.go:14:6: error: complex arguments must have identical types
     9  
    10  package main
    11  
    12  func main() {
    13  	var f float64
    14  	_ = complex(1/f, 0)
    15  }
    16  

View as plain text