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-3972] Infinite recursion when defining indirect enums in REPL #4638

Closed
swift-ci opened this issue Feb 16, 2017 · 0 comments
Closed

[SR-3972] Infinite recursion when defining indirect enums in REPL #4638

swift-ci opened this issue Feb 16, 2017 · 0 comments
Labels
bug Something isn't working LLDB for Swift REPL

Comments

@swift-ci
Copy link

Previous ID SR-3972
Radar None
Original Reporter Alvae (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Apple Swift version 3.0.2 (swiftlang-800.0.63 clang-800.0.42.1)
Target: x86_64-apple-macosx10.9

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug, REPL
Assignee None
Priority Medium

md5: dcea0b98396769eb4f55869e883d35ce

duplicates:

  • SR-3770 Swift REPL: Automatically printed description of indirect enum is incorrect and may cause infinite loop

Issue Description:

While the following code produces the expected result when compiling it from a source file (prints "node(main.BinaryTree.leaf, main.BinaryTree.node(main.BinaryTree.leaf, main.BinaryTree.leaf))"), the REPL goes into infinite recursion when initialising the constant:

{{
indirect enum BinaryTree {
case leaf
case node(BinaryTree, BinaryTree)
}
let aTree : BinaryTree = .node(.leaf, .node(.leaf, .leaf))
print(aTree)
}}

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift REPL
Projects
None yet
Development

No branches or pull requests

1 participant