Files
swift-mirror/validation-test/compiler_crashers_fixed/01339-phi-node-operands-not-same-as-result.swift
practicalswift c4866885c8 Rename old crash cases to match the current naming scheme.
Will allow for easy import of crash cases from swift-compiler-crashes.
2015-12-10 16:50:15 +01:00

23 lines
445 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// http://www.openradar.me/18756378
import Foundation
enum A<T : AnyObject> {
case E(T)
}
class B {
}
func c(d : A<B>) {
switch (d) {
case .E(let e):
print("")
default:
print("")
}
}