Execution was interrupted, reason: EXC_BAD_ACCESS - Swift Literals

Viewed 9335

I made a simple program to test Swift integer literals. I have not studied Swift much yet. I copied the code from a web page and renamed the variables. I get:

Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x0). The process has been left at the point where it was interrupted, use "thread return -x" to return to the state before expression evaluation.

import UIKit

let desimaali = 42
let binaari = 0b101010
let oktaali = 0o52
let heksa = 0x2A

I have tried replacing all the white space characters manually with normal spaces in case there are special hidden characters, but that doesn't seem to be the case. What could be the problem? A bug in Swift Playgrounds? (OS X 10.11.6 and Xcode 8.2.1.)

1 Answers
Related