1// compile
2
3// Copyright 2019 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// Compile with static map literal.
8
9package p
10
11type i interface {
12	j()
13}
14
15type s struct{}
16
17func (s) j() {}
18
19type foo map[string]i
20
21var f = foo{
22	"1": s{},
23	"2": s{},
24}
25