package main

import (
	"log"
)

func main() {
	var ok bool

	m := map[int]bool{0: false}
	i := interface{}(false)
	c := make(chan bool, 1)
	c <- false

	m[2], ok = i.(bool)
	log.Printf("m %v", m)

	ok, ok = m[0]
	if !ok {
		log.Fatalf("map access assigned right-to-left")
	}
	ok, ok = i.(bool)
	if !ok {
		log.Fatalf("type assertion assigned right-to-left")
	}
	ok, ok = <-c
	if !ok {
		log.Fatalf("channel receive assigned right-to-left")
	}
}
