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-2111] Crash when using variable as a default value for method in class. #4592

Closed
swift-ci opened this issue Jul 19, 2016 · 2 comments
Closed

Comments

@swift-ci
Copy link

Previous ID SR-2111
Radar rdar://problem/26978985
Original Reporter njuri (JIRA User)
Type Bug
Status Closed
Resolution Done
Environment

Xcode 8.0 beta 3
OS X El Capitan 10.11.6

Additional Detail from JIRA
Votes 0
Component/s Compiler, LLDB for Swift
Labels Bug, 3.0Regression, CompilerCrash
Assignee njuri (JIRA)
Priority Medium

md5: f9cca2c1fae9d31635468825fa9df3eb

Issue Description:

let a = 1

// Works ok
func foo(i : Int = a){
  print(i)
}

class TestClass {
  
  let b = 3
 
  // Crashing method
  func bar(j : Int = b){
    print(j)
  }
}
@rudkx
Copy link
Member

rudkx commented Jul 23, 2016

Fixed in commit ee6c0a7.

@rudkx
Copy link
Member

rudkx commented Sep 24, 2016

Can you confirm this is fixed, and close if so?

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants