forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 352
Closed
Labels
Description
| Previous ID | SR-155 |
| Radar | None |
| Original Reporter | MatiMax (JIRA User) |
| Type | Bug |
| Status | Closed |
| Resolution | Done |
Environment
Linux 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Additional Detail from JIRA
| Votes | 0 |
| Component/s | LLDB for Swift |
| Labels | Bug, Linux, REPL |
| Assignee | granataenrico (JIRA) |
| Priority | Medium |
md5: 8bd91f558571b08051eea978d5766f67
Issue Description:
While in the Swift REPL defining a struct and creating a new value the evaluation of the value results in an error.
1> struct Point {
2. var x: Float, y: Float
3. var d: Float { return y - x }
4. }
5> var p = Point(x: -2.0, y: 3.0)
p: Point = error: summary string parsing error
6> print(p)
Point(x: -2.0, y: 3.0)