1// run
2
3// Copyright 2009 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// Test static interface conversion of interface value nil.
8
9package main
10
11type R interface { R() }
12type RW interface { R(); W() }
13
14var e interface {}
15var r R
16var rw RW
17
18func main() {
19	r = r
20	r = rw
21	e = r
22	e = rw
23	rw = rw
24}
25