StringLiteral.canBePassedAs allows variable arrays

This commit is contained in:
2022-10-11 15:09:44 -04:00
parent 942a52f7c6
commit b8c57d5a56
5 changed files with 68 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ func (what Type) ToString (indent int) (output string) {
}
// underlyingPrimitive returns the primitive that this type eventually inherits
// from.
// from. If the type ends up pointing to something, this returns nil.
func (what Type) underlyingPrimitive () (underlying *TypeSection) {
// if we have already done this operation, return the cahced result.
if what.primitiveCache != nil {