Created
June 19, 2014 12:48
-
-
Save SteveTrewick/fbf4f3a7139562b82b2e to your computer and use it in GitHub Desktop.
Workaround for LLVM error when using generic class type parameters in Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ListNode<T> { | |
var items:T[] = [] | |
var item: T { get { return items[0] } set { items = [newValue] }} | |
var nextNode:ListNode? | |
init( item i:T ) { item = i} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment