Skip to content

Commit df62c78

Browse files
committed
Update a few tests I missed with the subscript printing change
1 parent 4b2fb9e commit df62c78

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

test/SIL/printer_include_decls.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Foo {
2222
}
2323
set {}
2424
}
25-
// CHECK: subscript (x: Int, y: Int) -> Int
25+
// CHECK: subscript(x: Int, y: Int) -> Int
2626

2727
final var x : Int
2828
// CHECK: var x: Int

test/attr/attr_dynamic_infer.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ extension Super {
1515
set { }
1616
}
1717

18-
// CHECK: @objc dynamic subscript (sup: Super) -> Super
19-
subscript (sup: Super) -> Super {
18+
// CHECK: @objc dynamic subscript(sup: Super) -> Super
19+
subscript(sup: Super) -> Super {
2020
// CHECK: @objc dynamic get
2121
get { return sup }
2222
// CHECK: @objc dynamic set
@@ -40,8 +40,8 @@ extension Sub {
4040
set { }
4141
}
4242

43-
// CHECK: @objc override dynamic subscript (sup: Super) -> Super
44-
override subscript (sup: Super) -> Super {
43+
// CHECK: @objc override dynamic subscript(sup: Super) -> Super
44+
override subscript(sup: Super) -> Super {
4545
// CHECK: @objc override dynamic get
4646
get { return sup }
4747
// CHECK: @objc override dynamic set

test/attr/attr_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ class infer_subscript1 {
15161516

15171517
@objc
15181518
subscript(i: Int) -> Int {
1519-
// CHECK: @objc subscript (i: Int) -> Int
1519+
// CHECK: @objc subscript(i: Int) -> Int
15201520
get {}
15211521
// CHECK: @objc get {}
15221522
set {}

test/attr/attr_objc_foreign.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ extension CGColor {
1212
var red: CGFloat { return 0 }
1313
// CHECK-LABEL: {{^}} func asCMYK() -> CGColor
1414
func asCMYK() -> CGColor { return self }
15-
// CHECK-LABEL: {{^}} subscript (x: CGColor) -> CGFloat
15+
// CHECK-LABEL: {{^}} subscript(x: CGColor) -> CGFloat
1616
subscript(x: CGColor) -> CGFloat { return 0 }
1717

1818
@objc var blue: CGFloat { return 0 } // expected-error{{method cannot be marked @objc because Core Foundation types are not classes in Objective-C}}

0 commit comments

Comments
 (0)