Skip to content

Return missing#3005

Open
AbhishekPratap9 wants to merge 1 commit intomicrosoft:mainfrom
AbhishekPratap9:patch-1
Open

Return missing#3005
AbhishekPratap9 wants to merge 1 commit intomicrosoft:mainfrom
AbhishekPratap9:patch-1

Conversation

@AbhishekPratap9
Copy link

return was missing as Result should be returned

Copy link
Collaborator

@swernli swernli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes aren't needed.

For the latest Q#, @EntryPoint() is not required as the callable named Main is automatically treated as the program entry.

Also, Q# supports implicit returns, where the last statement in a block, when it does not have a semicolon, is the return value of the block. So the explicit return is not required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants