Skip to content

Commit f614620

Browse files
committed
1 parent 23b9227 commit f614620

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

test/swift-files/indent/declarations.swift

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,35 @@ class Foo {
236236
foo()
237237
}
238238
}
239+
240+
var x {
241+
get
242+
async
243+
throws {
244+
1
245+
}
246+
}
247+
248+
var x {
249+
get
250+
async
251+
throws
252+
{
253+
1
254+
}
255+
}
256+
257+
internal var x: Int {
258+
@A
259+
mutating
260+
get
261+
async
262+
throws
263+
264+
@A
265+
mutating
266+
set
267+
}
239268
}
240269

241270
// Type alias declaration
@@ -602,11 +631,19 @@ protocol Foo {
602631
A: C
603632
subscript(x: Int) -> Int {
604633
get
634+
async
635+
throws
605636
set
606637
}
607638
associatedtype AAA = BBB
608639
convenience
609640
init(x: Int, y, Int)
641+
var foo: Int {
642+
get
643+
async
644+
throws
645+
set
646+
}
610647
}
611648

612649
// Operator declarations

0 commit comments

Comments
 (0)