This commit is contained in:
2022-09-29 20:28:51 -04:00
parent 52727a1996
commit 1300f87cb5
2 changed files with 3 additions and 2 deletions

View File

@@ -76,7 +76,8 @@ func (analyzer AnalysisOperation) analyzeType (
err error,
) {
outputType.mutable = inputType.Mutable()
if inputType.Length() < 1 {
outputType.length = inputType.Length()
if outputType.length < 1 {
err = inputType.NewError (
"cannot specify a length of zero",
infoerr.ErrorKindError)