Files
swift-mirror/validation-test/compiler_crashers/015-generic-enum-referencing-itself-in-case.swift
Joe Groff 041c179e01 SIL: Continue type lowering after address-only fields of aggregates.
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
2014-09-16 04:55:44 +00:00

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)
}