Navigation Menu

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-2663] ambiguous use of 'pow', Linux Swift 3.0 Release #45268

Open
swift-ci opened this issue Sep 16, 2016 · 0 comments
Open

[SR-2663] ambiguous use of 'pow', Linux Swift 3.0 Release #45268

swift-ci opened this issue Sep 16, 2016 · 0 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression swift 3.0 type checker Area → compiler: Semantic analysis

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-2663
Radar None
Original Reporter donald-pinckney (JIRA User)
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, 3.0Regression, TypeChecker
Assignee None
Priority Medium

md5: 3ae5a2549f4edc309c1f0058bd417d20

Issue Description:

The behavior of the type checking for pow() seems rather strange in Linux Swift 3.0 Release. I'm not sure exactly what the correct behavior should be, but the inconsistency shown below is odd, and seems either like a bug, or an oddity in Swift that is difficult to rationalize. In either case, it should be fixed / improved. See REPL session:

Welcome to Swift version 3.0 (swift-3.0-RELEASE). Type :help for assistance.
  1> import Glibc
  2> pow(5, 3)
error: repl.swift:2:1: error: ambiguous use of 'pow'
pow(5, 3)
^

  2> pow(5.1, 3.1)
$R0: Double = 156.12323653407694

Note that by using: https://swiftlang.ng.bluemix.net/#/repl, you can find that this is a regression since Swift 2.2

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself regression swift 3.0 type checker Area → compiler: Semantic analysis
Projects
None yet
Development

No branches or pull requests

2 participants