mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Validating the argument type might validate the enum decl in malformed (or maybe even some valid?) code. We would call computeTwice() in this case, leading to a crash. Also clean up some test cases. Swift SVN r30673
10 lines
115 B
Swift
10 lines
115 B
Swift
// RUN: %target-parse-verify-swift
|
|
|
|
enum E {
|
|
indirect case Foo(E)
|
|
case Bar
|
|
}
|
|
|
|
var e: E = .Bar
|
|
var f: E = .Foo(e)
|