lang: Update map type definition to include a prefix
It turns out that some planned additions to the parser make it so that the map type definition can be ambiguous. As a result, this patch updates the definition so that the map definition is not confused with an open curly bracket anywhere. Thanks to pestle and stbenjamin for their help understanding yacc!
This commit is contained in:
@@ -60,7 +60,7 @@ func (obj *ExchangeFunc) Info() *interfaces.Info {
|
||||
// TODO: do we want to allow this to be statically polymorphic,
|
||||
// and have value be any type we might want?
|
||||
// output is map of: hostname => value
|
||||
Sig: types.NewType("func(namespace str, value str) {str: str}"),
|
||||
Sig: types.NewType("func(namespace str, value str) map{str: str}"),
|
||||
Err: obj.Validate(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user