Source file test/fixedbugs/issue38916.go

     1  // compile
     2  
     3  // Copyright 2020 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  package p
     8  
     9  func f(b bool, c complex128) func(complex128) complex128 {
    10  	return func(p complex128) complex128 {
    11  		b = (p+1i == 0) && b
    12  		return (p + 2i) * (p + 3i - c)
    13  	}
    14  }
    15  

View as plain text