Skip to content

Commit c14779f

Browse files
committed
[IDE] Property delegate: Add custom attribute coloring test
1 parent 10439a0 commit c14779f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/IDE/coloring.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,3 +429,13 @@ func foo() -> some P {}
429429

430430
// CHECK: <kw>func</kw> foo() -> <kw>some</kw> <type>P</type> & <type>Q</type> {}
431431
func foo() -> some P & Q {}
432+
433+
// CHECK: <kw>class</kw> PropertyDelgate {
434+
class PropertyDelgate {
435+
// CHECK: @<type>MyDelegate</type>(<int>1</int>, receiveClosure {
436+
@MyDelegate(1, receiveClosure {
437+
// CHECK: <kw>var</kw> x = <int>1</int>; x
438+
var x = 1; x
439+
})
440+
var something
441+
}

0 commit comments

Comments
 (0)