Files
swift-mirror/validation-test/compiler_crashers_fixed/1339-phi-node-operands-not-same-as-result.swift
Dmitri Hrybenko f46f16ae82 stdlib: implement new print() API
rdar://20775683

Swift SVN r28309
2015-05-08 01:37:59 +00: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(var e):
print("")
default:
print("")
}
}