Skip to content

Commit ff7f117

Browse files
committed
Gardening: Migrate test suite to GH issues: Parse
1 parent 1ce2c8e commit ff7f117

19 files changed

+101
-72
lines changed

test/Parse/ConditionalCompilation/decl_in_true_inactive.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// RUN: %target-typecheck-verify-swift -D FOO -D BAR
22

3-
// SR-3996 Incorrect type checking when using defines
3+
// https://github.com/apple/swift/issues/46581
4+
// Incorrect type checking when using defines
5+
//
46
// Decls in true-but-inactive blocks used to be leaked.
7+
58
func f1() -> Int {
69
#if FOO
710
let val = 1

test/Parse/ConditionalCompilation/pound-if-top-level-4.swift

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

3-
// https://bugs.swift.org/browse/SR-4426
4-
// '#if' in top-level code that contains only decls should not disturb forward reference.
3+
// https://github.com/apple/swift/issues/47003
4+
// '#if' in top-level code that contains only declarations should not disturb
5+
// forward reference.
56

67
typealias A = B
78

test/Parse/diagnose_availability.swift

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

3-
// SR-4231: Misleading/wrong error message for malformed @available
3+
// https://github.com/apple/swift/issues/46814
4+
// Misleading/wrong error message for malformed '@available'
45

56
@available(OSX 10.6, *) // no error
67
func availableSince10_6() {}
@@ -28,7 +29,8 @@ func availableOnMultiplePlatforms() {}
2829
func twoShorthandsFollowedByDeprecated() {}
2930

3031

31-
// SR-8598: Missing/wrong warning message for '*' or 'swift' platform.
32+
// https://github.com/apple/swift/issues/51114
33+
// Missing/wrong warning message for '*' or 'swift' platform.
3234

3335
@available(*, deprecated: 4.2)
3436
// expected-warning@-1 {{unexpected version number in 'available' attribute for non-specific platform '*'}} {{25-30=}}

test/Parse/diagnose_initializer_as_typed_pattern.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// https://bugs.swift.org/browse/SR-1461
3+
// https://github.com/apple/swift/issues/44070
44

55
class X {}
66
func foo() {}

test/Parse/diagnostic_missing_func_keyword.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// https://bugs.swift.org/browse/SR-10477
3+
// https://github.com/apple/swift/issues/52877
44

55
protocol Brew { // expected-note {{in declaration of 'Brew'}}
66
tripel() -> Int // expected-error {{expected 'func' keyword in instance method declaration}} {{3-3=func }}

test/Parse/dollar_identifier.swift

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

3-
// SR-1661: Dollar was accidentally allowed as an identifier in Swift 3.
3+
// https://github.com/apple/swift/issues/44270
4+
// Dollar was accidentally allowed as an identifier in Swift 3.
45
// SE-0144: Reject this behavior in the future.
56

67
func dollarVar() {
@@ -105,7 +106,8 @@ infix operator **: $Precedence
105106
#$UnknownDirective() // expected-error {{use of unknown directive '#$UnknownDirective'}}
106107

107108

108-
// SR-13232
109+
// https://github.com/apple/swift/issues/55672
110+
109111
@propertyWrapper
110112
struct Wrapper {
111113
var wrappedValue: Int
@@ -118,5 +120,6 @@ struct S {
118120

119121
let _ = S().$café // Okay
120122

121-
infix operator $ // expected-error{{'$' is considered an identifier and must not appear within an operator name}} // SR-13092
122-
infix operator `$` // expected-error{{'$' is considered an identifier and must not appear within an operator name}} // SR-13092
123+
// https://github.com/apple/swift/issues/55538
124+
infix operator $ // expected-error{{'$' is considered an identifier and must not appear within an operator name}}
125+
infix operator `$` // expected-error{{'$' is considered an identifier and must not appear within an operator name}}

test/Parse/enum.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -553,42 +553,43 @@ enum SE0155 {
553553
// expected-note@-2 {{did you mean to explicitly add a 'Void' associated value?}} {{18-18=Void}}
554554
}
555555

556-
// SR-11261
557-
enum SR11261 {
556+
// https://github.com/apple/swift/issues/53662
557+
558+
enum E_53662 {
558559
case identifier
559560
case operator // expected-error {{keyword 'operator' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{8-16=`operator`}}
560561
case identifier2
561562
}
562563

563-
enum SR11261_var {
564+
enum E_53662_var {
564565
case identifier
565566
case var // expected-error {{keyword 'var' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{8-11=`var`}}
566567
case identifier2
567568
}
568569

569-
enum SR11261_underscore {
570+
enum E_53662_underscore {
570571
case identifier
571572
case _ // expected-error {{keyword '_' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{8-9=`_`}}
572573
case identifier2
573574
}
574575

575-
enum SR11261_Comma {
576+
enum E_53662_Comma {
576577
case a, b, c, func, d // expected-error {{keyword 'func' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{17-21=`func`}}
577578
}
578579

579-
enum SR11261_Newline {
580+
enum E_53662_Newline {
580581
case identifier1
581582
case identifier2
582583
case
583584
case identifier // expected-error {{keyword 'case' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{3-7=`case`}}
584585
}
585586

586-
enum SR11261_Newline2 {
587+
enum E_53662_Newline2 {
587588
case
588589
func foo() {} // expected-error {{keyword 'func' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{3-7=`func`}}
589590
}
590591

591-
enum SR11261_PatternMatching {
592+
enum E_53662_PatternMatching {
592593
case let .foo(x, y): // expected-error {{'case' label can only appear inside a 'switch' statement}}
593594
}
594595

test/Parse/enum_element_pattern_swift4.swift

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

3-
// https://bugs.swift.org/browse/SR-3452
3+
// https://github.com/apple/swift/issues/46040
44
// See test/Compatibility/enum_element_pattern.swift for Swift3 behavior.
5-
// As for FIXME cases: see https://bugs.swift.org/browse/SR-3466
5+
// As for FIXME cases: see https://github.com/apple/swift/issues/46054
66

77
enum E {
88
case A, B, C, D

test/Parse/errors.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ func fixitThrow2() throws {
155155

156156
let fn: () -> throws Void // expected-error{{'throws' may only occur before '->'}} {{12-12=throws }} {{15-22=}}
157157

158-
// SR-11574
158+
// https://github.com/apple/swift/issues/53979
159+
159160
func fixitTry0<T>(a: T) try where T:ExpressibleByStringLiteral {} // expected-error{{expected throwing specifier; did you mean 'throws'?}} {{25-28=throws}}
160161
func fixitTry1<T>(a: T) try {} // expected-error{{expected throwing specifier; did you mean 'throws'?}} {{25-28=throws}}
161162
func fixitTry2() try {} // expected-error{{expected throwing specifier; did you mean 'throws'?}} {{18-21=throws}}

test/Parse/init_deinit.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ func barFunc() {
118118
} ()
119119
}
120120

121-
// SR-852
121+
// https://github.com/apple/swift/issues/43464
122+
122123
class Aaron {
123124
init(x: Int) {}
124125
convenience init() { init(x: 1) } // expected-error {{missing 'self.' at initializer invocation}} {{24-24=self.}}

0 commit comments

Comments
 (0)