Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-14196] Add a diagnostic for using unexisting "**" operator in Swift. #56574

Closed
swift-ci opened this issue Feb 12, 2021 · 1 comment
Closed

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-14196
Radar None
Original Reporter mininny (JIRA User)
Type Sub-task
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s
Labels Sub-task
Assignee mininny (JIRA)
Priority Medium

md5: 60cb58cfa3691234b891ddfd40a53982

Parent-Task:

  • SR-14095 Improve diagnostic on incorrect usage of ^ and ** operators

Issue Description:

let a: Double = 3**3

emits 'Cannot find oeprator '**' in scope' error.

But since '**' operator is usually exponentiation operator in many other languages, it may be helpful to guide them to use 'Foundation.pow' instead.

@xedin
Copy link
Member

xedin commented Mar 16, 2021

Fixed by #35933 Please use next available main branch snapshot to verify and close.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
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

No branches or pull requests

2 participants