Created
June 13, 2017 09:28
-
-
Save jensmeder/18f7b62822249823f78f7de6e1d5e0dd to your computer and use it in GitHub Desktop.
rdar://32734461 (Xcode 9 beta1: Swift generics in custom class crashes Instruments when specifying Dictionary type)
This file contains hidden or 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
// | |
// AppDelegate.swift | |
// Crashy | |
// | |
// Created by Jens Meder on 13.06.17. | |
// Copyright © 2017 Jens Meder. All rights reserved. | |
// | |
import UIKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | |
let _ = Memory<[String:String]>(value: ["hello":"world"]) | |
return true | |
} | |
} | |
This file contains hidden or 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
// | |
// Memory.swift | |
// Crashy | |
// | |
// Created by Jens Meder on 13.06.17. | |
// Copyright © 2017 Jens Meder. All rights reserved. | |
// | |
import Foundation | |
internal class Memory<T> { | |
public var value: T | |
// MARK: Init | |
internal init(value: T) { | |
self.value = value | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment