You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
}}
The text was updated successfully, but these errors were encountered:
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
md5: dcea0b98396769eb4f55869e883d35ce
duplicates:
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)
}}
The text was updated successfully, but these errors were encountered: