Skip to content
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.

Compile error: Access String array by subscript #6

Closed
shoken0x opened this issue Jun 16, 2014 · 0 comments
Closed

Compile error: Access String array by subscript #6

shoken0x opened this issue Jun 16, 2014 · 0 comments
Labels

Comments

@shoken0x
Copy link

This code is compile error on 2nd line.

let strArray = ["s", "w", "i", "f", "t"]
let char = strArray[0]

screen shot 2014-06-16 at 1 47 41 pm

After comment out below on Array.swift, build succeeded.

/**
*  Same as `at`
*/
subscript (indexes: Int...) -> Array {
    return at(reinterpretCast(indexes))
}
@pNre pNre added the bug label Jun 16, 2014
@pNre pNre closed this as completed in bbffc11 Jun 16, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants