dotnet / dotnet/csharpstandard

15.7.11, 10.2.7, 12.6.6.1: Term "returns normally" used but not clearly defined

Open
#94 5 comments 0 reactions 0 assignees View on GitHub
type: clarity
Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Description

The term "returns normally" is used in 16.7.11 where it is parenthetically defined:

> If execution of the method body of a void method completes normally (that is, control flows off the end of the method body), that method simply returns to its caller.

The same term is used in 11.2.7 talking about output parameters:

> Every output parameter of a function member or anonymous function shall be definitely assigned (§11.4) before the function member or anonymous function returns normally.

It feels like this should be explicitly defined in a section, then referenced from both places - but I'm not sure which section is best. Possibly 13.6.6.1 (member invocation)?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.