mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
306 B
Swift
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")
|
|
}
|