package pkg

func foo() bool { return true }

var bar bool
var baz bool

func fn() {
	x := foo() || (bar && !baz) //@ diag(`merge conditional assignment`)

	x = false
	if foo() || (bar && !baz) {
		x = true
	}

	y := false
	if true {
		y = true
		println(y)
	}

	z := false
	if true {
		z = false
	}

	a := false
	if true {
		x = true
	}

	b := !(foo() || (bar && !baz)) //@ diag(`merge conditional assignment`)

	c := false
	if true {
		c = false
	}

	d := true
	if true {
		d = true
	}

	_ = x
	_ = y
	_ = z
	_ = a
	_ = b
	_ = c
	_ = d
}
