зеркало из https://github.com/golang/example.git
gotypes: fix typeandvalue output
Change-Id: Id9a25bacfa670091e0b02efb6110d758ec5afca5 Reviewed-on: https://go-review.googlesource.com/23567 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
Родитель
ef176d87c1
Коммит
adefd0d380
|
@ -1492,7 +1492,11 @@ make mode: builtin
|
|||
type: func(map[string]int) map[string]int
|
||||
map[string]int mode: type
|
||||
type: map[string]int
|
||||
m["hello"] mode: value,assignable,ok
|
||||
string mode: type
|
||||
type: string
|
||||
int mode: type
|
||||
type: int
|
||||
m["hello, "+"world"] mode: value,assignable,ok
|
||||
type: (int, bool)
|
||||
m mode: value,addressable,assignable
|
||||
type: map[string]int
|
||||
|
|
|
@ -104,7 +104,11 @@ make mode: builtin
|
|||
type: func(map[string]int) map[string]int
|
||||
map[string]int mode: type
|
||||
type: map[string]int
|
||||
m["hello"] mode: value,assignable,ok
|
||||
string mode: type
|
||||
type: string
|
||||
int mode: type
|
||||
type: int
|
||||
m["hello, "+"world"] mode: value,assignable,ok
|
||||
type: (int, bool)
|
||||
m mode: value,addressable,assignable
|
||||
type: map[string]int
|
||||
|
|
Загрузка…
Ссылка в новой задаче