diff --git a/runtime/sema/type.go b/runtime/sema/type.go index 0e2f28a9c7..2ecbc92822 100644 --- a/runtime/sema/type.go +++ b/runtime/sema/type.go @@ -676,7 +676,7 @@ func (t *OptionalType) IsResourceType() bool { } func (t *OptionalType) IsPrimitiveType() bool { - return false + return t.Type.IsPrimitiveType() } func (t *OptionalType) IsInvalidType() bool {