Make MakeCompoundType package private (#1304)

And same for MakePrimitiveType. This also makes sure that we return
the same primitive type every single time.

Fixes #1271
This commit is contained in:
Erik Arvidsson
2016-04-22 17:49:27 -07:00
parent a078504e9b
commit 423d3a87ec
45 changed files with 393 additions and 318 deletions

View File

@@ -38,7 +38,7 @@ func (fs String) ChildValues() []Value {
return nil
}
var typeForString = MakePrimitiveType(StringKind)
var typeForString = StringType
func (fs String) Type() *Type {
return typeForString