Files
swift-mirror/validation-test/compiler_crashers/26813-generic-enum-tuple-optional-payload.swift
practicalswift fe2bc2421e Sync with https://github.com/practicalswift/swift-compiler-crashes
Add 5 compiler crashes (+ 1 fixed crash).
2015-12-11 21:35:06 +01:00

14 lines
306 B
Swift

// RUN: not --crash %target-swift-frontend %s -parse
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/austinzheng (Austin Zheng)
enum A<T> {
case Just(T)
case Error
}
func foo() -> A<(String, String?)> {
return A.Just("abc", "def")
}