Skip to content

Commit c55218d

Browse files
Merge pull request #61132 from AnthonyLatsis/migrate-test-suite-to-gh-issues-27
Gardening: Migrate test suite to GH issues p. 27
2 parents d5fa9c1 + 34f78b2 commit c55218d

File tree

86 files changed

+211
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+211
-57
lines changed

validation-test/compiler_crashers_2_fixed/sr1329.swift renamed to validation-test/compiler_crashers_2_fixed/issue-43937.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend -emit-ir %s -disable-objc-attr-requires-foundation-module
22
// REQUIRES: objc_interop
33

4+
// https://github.com/apple/swift/issues/43937
5+
46
@objc protocol TestProtocol {
57
func foo(i: Int)
68
}

validation-test/compiler_crashers_2_fixed/sr4203.swift renamed to validation-test/compiler_crashers_2_fixed/issue-46786.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-ir %s
22

3+
// https://github.com/apple/swift/issues/46786
4+
35
public protocol SomeProto {
46
associatedtype ThingType
57
func getThing() -> ThingType

validation-test/compiler_crashers_2_fixed/sr-4571.swift renamed to validation-test/compiler_crashers_2_fixed/issue-47148.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-ir %s
22

3+
// https://github.com/apple/swift/issues/47148
4+
35
func add(_ a: Int, _ b: Int) throws -> Int {
46
return a + b
57
}

validation-test/compiler_crashers_2_fixed/sr5330.swift renamed to validation-test/compiler_crashers_2_fixed/issue-47904.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-frontend -emit-module -o %t %s -I %S/Inputs/sr5330/ -module-name TEST
3-
// RUN: echo 'import TEST; x' | not %target-swift-frontend -typecheck - -I %S/Inputs/sr5330/ -I %t
2+
// RUN: %target-swift-frontend -emit-module -o %t %s -I %S/Inputs/issue-47904/ -module-name TEST
3+
// RUN: echo 'import TEST; x' | not %target-swift-frontend -typecheck - -I %S/Inputs/issue-47904/ -I %t
44

55
// REQUIRES: objc_interop
66

7+
// https://github.com/apple/swift/issues/47904
8+
79
import ObjCPart
810

911
public typealias Alias = MyCollection

validation-test/compiler_crashers_2_fixed/sr-5836.swift renamed to validation-test/compiler_crashers_2_fixed/issue-48406.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-typecheck-verify-swift
22

3+
// https://github.com/apple/swift/issues/48406
4+
35
extension Dictionary {
46
func doSomething<T>() -> [T : Value] {
57
let pairs: [(T, Value)] = []

validation-test/compiler_crashers_2_fixed/sr7002.swift renamed to validation-test/compiler_crashers_2_fixed/issue-49550.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/49550
4+
35
struct Foo: OptionSet {
46
let rawValue: Int
57
static let none = Foo(rawValue: 1 << 0)

validation-test/compiler_crashers_2_fixed/sr8456.swift renamed to validation-test/compiler_crashers_2_fixed/issue-50977.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/50977
4+
35
enum Foo {
46
case BigA {
57
}

validation-test/compiler_crashers_2_fixed/sr8467-0-invalid-read-get-extra-info.swift renamed to validation-test/compiler_crashers_2_fixed/issue-50988-0-invalid-read-get-extra-info.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

88
// RUN: not %target-swift-frontend %s -dump-ast
9+
10+
// https://github.com/apple/swift/issues/50988
11+
912
let h={0(

validation-test/compiler_crashers_2_fixed/sr8467-1-invalid-read-get-extra-info.swift renamed to validation-test/compiler_crashers_2_fixed/issue-50988-1-invalid-read-get-extra-info.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

88
// RUN: not %target-swift-frontend %s -dump-ast
9+
10+
// https://github.com/apple/swift/issues/50988
11+
912
let pq = {
1013
return $0 ?? nil
1114
}

validation-test/compiler_crashers_2_fixed/sr8467-2-invalid-read-get-extra-info.swift renamed to validation-test/compiler_crashers_2_fixed/issue-50988-2-invalid-read-get-extra-info.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

88
// RUN: not %target-swift-frontend %s -dump-ast
9+
10+
// https://github.com/apple/swift/issues/50988
11+
912
{(x)->i in

validation-test/compiler_crashers_2_fixed/sr8467-3-invalid-read-get-extra-info.swift renamed to validation-test/compiler_crashers_2_fixed/issue-50988-3-invalid-read-get-extra-info.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

88
// RUN: not %target-swift-frontend %s -dump-ast
9+
10+
// https://github.com/apple/swift/issues/50988
11+
912
var:Int->Int={}

validation-test/compiler_crashers_2_fixed/sr8467-4-invalid-read-get-extra-info.swift renamed to validation-test/compiler_crashers_2_fixed/issue-50988-4-invalid-read-get-extra-info.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@
66
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
77

88
// RUN: not %target-swift-frontend %s -dump-ast
9+
10+
// https://github.com/apple/swift/issues/50988
11+
912
{(v:T)in

validation-test/compiler_crashers_2_fixed/sr8469.swift renamed to validation-test/compiler_crashers_2_fixed/issue-50990.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-ir %s
22

3+
// https://github.com/apple/swift/issues/50990
4+
35
final class Baz {}
46

57
final class Bar {

validation-test/compiler_crashers_2_fixed/sr9199.swift renamed to validation-test/compiler_crashers_2_fixed/issue-51690.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: not %target-swift-frontend -emit-ir %s
22

3+
// https://github.com/apple/swift/issues/51690
34
// Just make sure we don't crash.
45

56
protocol Publicable {

validation-test/compiler_crashers_2_fixed/sr9225.swift renamed to validation-test/compiler_crashers_2_fixed/issue-51714.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/sr9225-other.swift -module-name sr9225
2-
// RUN: %target-swift-frontend -emit-ir %s -primary-file %S/Inputs/sr9225-other.swift -module-name sr9225
1+
// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/issue-51714-other.swift -module-name M
2+
// RUN: %target-swift-frontend -emit-ir %s -primary-file %S/Inputs/issue-51714-other.swift -module-name M
3+
4+
// https://github.com/apple/swift/issues/51714
35

46
protocol P1 {
57
associatedtype P1_T1

validation-test/compiler_crashers_2_fixed/sr9584.swift renamed to validation-test/compiler_crashers_2_fixed/issue-52031.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-typecheck-verify-swift
22

3+
// https://github.com/apple/swift/issues/52031
4+
35
struct S<N> {}
46

57
protocol P {

validation-test/compiler_crashers_2_fixed/sr9849.swift renamed to validation-test/compiler_crashers_2_fixed/issue-52260.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-frontend -Xllvm -sil-verify-after-pass=loadable-address -emit-ir -o %t.ll %s
22

3+
// https://github.com/apple/swift/issues/52260
34
// Just make sure we don't crash.
45

56

validation-test/compiler_crashers_2_fixed/sr10062.swift renamed to validation-test/compiler_crashers_2_fixed/issue-52464.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: not %target-swift-frontend -emit-silgen %s
22

3+
// https://github.com/apple/swift/issues/52464
34
// Just make sure we don't crash.
45

56
func foo(x: inout Int = 0) {}

validation-test/compiler_crashers_2_fixed/sr10108.swift renamed to validation-test/compiler_crashers_2_fixed/issue-52510.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/52510
34
// Just make sure we don't crash.
45

56
enum Crash: String {

validation-test/compiler_crashers_2_fixed/sr10146.swift renamed to validation-test/compiler_crashers_2_fixed/issue-52548.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
import UIKit
55

6+
// https://github.com/apple/swift/issues/52548
67
// Just make sure we don't crash.
78

89
class Foo: NSObject {

validation-test/compiler_crashers_2_fixed/sr10201.swift renamed to validation-test/compiler_crashers_2_fixed/issue-52601.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -typecheck -verify %s
22

3+
// https://github.com/apple/swift/issues/52601
4+
35
struct A {
46
typealias Value = Int
57
}

validation-test/compiler_crashers_2_fixed/sr-10612.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53012.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/53012
4+
35
protocol P1: class {
46
associatedtype P1P1: P1
57
associatedtype P1AnyP2: AnyP2<P1P1>

validation-test/compiler_crashers_2_fixed/sr10792.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53182.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-ir %s
22

3+
// https://github.com/apple/swift/issues/53182
4+
35
protocol DateGroupedCollection: Collection {
46
typealias DictionaryType = [String: Int]
57

validation-test/compiler_crashers_2_fixed/sr10937.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53328.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-sil %s
22

3+
// https://github.com/apple/swift/issues/53328
4+
35
@propertyWrapper
46
struct Foo<T> {
57
init(wrappedValue: T) {

validation-test/compiler_crashers_2_fixed/sr10992.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53382.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/53382
4+
35
protocol P {}
46
struct S<T> {}
57
extension S : P where T : P {}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See https://swift.org/LICENSE.txt for license information
6+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
8+
// RUN: not %target-swift-frontend %s -emit-silgen
9+
10+
// https://github.com/apple/swift/issues/53417
11+
12+
func block1(_ f: @convention(block) @autoclosure () -> Int) -> Void {}
13+
block1(1)
14+
15+
func c1(_ f: @convention(c) @autoclosure () -> Int) -> Void {}
16+
c1(1)
17+
18+
func swift1(_ f: @convention(swift) @autoclosure () -> Int) -> Void {} // OK
19+
swift1(1)
20+
21+
func thin1(_ f: @convention(thin) @autoclosure () -> Int) -> Void {} // OK
22+
thin1(1)
23+
24+
func block2(_ f: @autoclosure @convention(block) () -> Int) -> Void {}
25+
block2(1)
26+
27+
func c2(_ f: @autoclosure @convention(c) () -> Int) -> Void {}
28+
c2(1)
29+
30+
func swift2(_ f: @autoclosure @convention(swift) () -> Int) -> Void {} // OK
31+
swift2(1)
32+
33+
func thin2(_ f: @autoclosure @convention(thin) () -> Int) -> Void {} // OK
34+
thin2(1)

validation-test/compiler_crashers_2_fixed/sr11030.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53420.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -O -emit-ir %s
22

3+
// https://github.com/apple/swift/issues/53420
4+
35
public class Coordinator: ConcreteCoordinator {
46
public func coordinate() {
57

validation-test/compiler_crashers_2_fixed/sr11052-typealias.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53441-typealias.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-typecheck-verify-swift
22

3+
// https://github.com/apple/swift/issues/53441
4+
35
protocol ProtoA {
46
associatedtype AType1
57
}

validation-test/compiler_crashers_2_fixed/sr11062.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53454.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-ir %s
22

3+
// https://github.com/apple/swift/issues/53454
4+
35
struct MyText<V> {
46
let label: String
57
let value: V
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/53477
4+
35
func foo(x: Int) {}
46
func foo(line: String = #line) {}
57
foo()

validation-test/compiler_crashers_2_fixed/sr11108.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53503.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-emit-silgen %s
22

3+
// https://github.com/apple/swift/issues/53503
4+
35
protocol Example {
46
associatedtype Signed: SignedInteger
57
associatedtype SP: StringProtocol

validation-test/compiler_crashers_2_fixed/sr11153_2.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53550.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
// RUN: %target-swift-frontend -emit-ir -primary-file %S/Inputs/sr11153_2_other.swift -primary-file %s
2-
// RUN: %target-swift-frontend -emit-ir %S/Inputs/sr11153_2_other.swift %s
1+
// RUN: %target-swift-frontend -emit-ir -module-name M -primary-file %S/Inputs/issue-53550-other.swift -primary-file %s
2+
// RUN: %target-swift-frontend -emit-ir -module-name M %S/Inputs/issue-53550-other.swift %s
3+
4+
// https://github.com/apple/swift/issues/53550
35

46
class WatchRegistry {
57
func single<S: Snapshotting>(objectType: S.Type) throws -> Watch<S>

validation-test/compiler_crashers_2_fixed/sr11232.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53633.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-emit-silgen %s
22

3+
// https://github.com/apple/swift/issues/53633
4+
35
protocol Pub {
46
associatedtype Other
57
associatedtype Failure: Error

validation-test/compiler_crashers_2_fixed/sr11236.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53637.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/53637
4+
35
public func trichotomy<T : Comparable>(x: T, y: T) -> some Comparable {
46
if x < y { return -1 }
57
else if x == y { return 0 }

validation-test/compiler_crashers_2_fixed/sr11392.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53793.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// Works with experimental associated type inference.
44
// RUN: %target-swift-frontend -enable-experimental-associated-type-inference -emit-ir %s
55

6+
// https://github.com/apple/swift/issues/53793
7+
68
protocol P1 {
79
associatedtype X
810
// expected-note@-1 {{protocol requires nested type 'X'; do you want to add it?}}
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/53795
4+
35
protocol Foo {}
46
func foo(_ bar: Foo) {}
57
foo(true ? "a" : "b")

validation-test/compiler_crashers_2_fixed/sr11509.swift renamed to validation-test/compiler_crashers_2_fixed/issue-53910.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend %s -typecheck -verify
22

3+
// https://github.com/apple/swift/issues/53910
4+
35
@propertyWrapper
46
public struct Wrapper<Value> {
57
public init(someValue unused: Int) {

validation-test/compiler_crashers_2_fixed/sr11599.swift renamed to validation-test/compiler_crashers_2_fixed/issue-54004.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -typecheck %s -verify
22

3+
// https://github.com/apple/swift/issues/54004
4+
35
@propertyWrapper
46
struct A {
57
var wrappedValue: Int

validation-test/compiler_crashers_2_fixed/sr11600.swift renamed to validation-test/compiler_crashers_2_fixed/issue-54005.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: not %target-swift-frontend -typecheck %s
22

3+
// https://github.com/apple/swift/issues/54005
4+
35
@propertyWrapper struct A {
46
var wrappedValue: Int
57
}

validation-test/compiler_crashers_2_fixed/sr11624.swift renamed to validation-test/compiler_crashers_2_fixed/issue-54035.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
// RUN: %target-swift-frontend %s -O -whole-module-optimization -emit-sil
99

10+
// https://github.com/apple/swift/issues/54035
11+
1012
class ClassA<T> { }
1113
protocol ProtocolA { }
1214

validation-test/compiler_crashers_2_fixed/sr11637.swift renamed to validation-test/compiler_crashers_2_fixed/issue-54048.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
// REQUIRES: asserts
44

5+
// https://github.com/apple/swift/issues/54048
6+
57
@propertyWrapper
68
struct MutatingGetNonMutatingSetWrapper<T> {
79
private var fixed: T

validation-test/compiler_crashers_2_fixed/sr11639.swift renamed to validation-test/compiler_crashers_2_fixed/issue-54050.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -emit-ir -primary-file %s -debug-generic-signatures 2>&1 | %FileCheck %s
22

3+
// https://github.com/apple/swift/issues/54050
4+
35
public protocol FooProtocol {
46
associatedtype Bar
57
}
@@ -14,5 +16,5 @@ public protocol BazProtocol: FooProtocol {
1416
typealias Foo2 = Foo<Foo2Bar>
1517
}
1618

17-
// CHECK-LABEL: sr11639.(file).BazProtocol@
19+
// CHECK-LABEL: {{^.+}}.(file).BazProtocol@
1820
// CHECK-NEXT: Requirement signature: <Self where Self : FooProtocol, Self.[BazProtocol]Foo1 : FooProtocol, Self.[BazProtocol]Foo2Bar == Self.[BazProtocol]Foo1.[FooProtocol]Bar>

validation-test/compiler_crashers_2_fixed/sr11684.swift renamed to validation-test/compiler_crashers_2_fixed/issue-54093.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend %s -typecheck -verify
22

3+
// https://github.com/apple/swift/issues/54093
4+
35
@propertyWrapper
46
struct Wrapper1 {
57
var wrappedValue: Int?
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: %target-swift-frontend %s -typecheck -verify
2+
3+
// https://github.com/apple/swift/issues/54359
4+
5+
func f(_ closure: @autoclosure () -> String...) {} // expected-error {{'@autoclosure' must not be used on variadic parameters}}
6+
f("A") // No crash

0 commit comments

Comments
 (0)