mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Now that we rely on type lowering to catch recursive value types, this optimization is no longer valid. Fixes rdar://problem/18232757 (crash suite #015). Swift SVN r21967
8 lines
255 B
Swift
8 lines
255 B
Swift
// RUN: %swift -emit-ir -verify %s
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// http://www.openradar.me/17225563
|
|
|
|
enum a<T> { // expected-error{{recursive value type 'a<T>' is not allowed}}
|
|
case s(T, a)
|
|
}
|