Open
Description
Previous ID | SR-3577 |
Radar | None |
Original Reporter | cristianames (JIRA User) |
Type | Bug |
Environment
Xcode Version 8.2.1 (8C1002)
macOS 10.12.2 (16C67)
Additional Detail from JIRA
Votes | 1 |
Component/s | Foundation |
Labels | Bug, RunTimeCrash |
Assignee | None |
Priority | Medium |
md5: 776eb9f80897a433db2c467cc820bd02
Issue Description:
For some reason that I can't explain, the class Timer seems to have an initializer with no parameters, which it doesn't had, so when you initialize a new timer using this non-existent variant, the compiler won't complain, but at RunTime there will be an EXEC_BAD_ACCESS error. I had tried subclassing, reimplementing the same class again to see if I can detect the source of the error, but I couldn't. To let clear the problem I let a snippet of code down below.
Code:
let baz = Timer()
Error: Execution was interrupted, reason:EXEC_BAD_ACCESS (Code=1, Address= 0x0)