mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
31 lines
458 B
Swift
31 lines
458 B
Swift
// RUN: not %target-swift-frontend %s -parse
|
|
|
|
// Distributed under the terms of the MIT license
|
|
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
|
|
// Test case found by fuzzing
|
|
|
|
func b
|
|
{class n{
|
|
{{
|
|
{
|
|
{ {
|
|
{{
|
|
{ {
|
|
{
|
|
}}b{}}}}}
|
|
}}}}
|
|
class B:A
|
|
struct Q{
|
|
struct Q{
|
|
a A{ { {{ {
|
|
}}}}}protocol a{
|
|
struct S{ b{
|
|
}protocol a{
|
|
struct Q:a}}}typealias A
|
|
}}
|
|
:{ }protocol A{{}typealias d
|
|
protocol a{struct
|
|
{
|
|
}typealias f
|
|
{{}}typealias d:f
|