Skip to content

Commit 3319347

Browse files
committed
[lit_tests/coloring.swift] Add test cases using some types
1 parent e507abc commit 3319347

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lit_tests/coloring.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,3 +394,9 @@ let closure = { [weak x=bindtox, unowned y=bindtoy, unowned(unsafe) z=bindtoz] i
394394
protocol FakeClassRestrictedProtocol : `class` {}
395395
// FIXME: rdar://42801404: OLD and NEW should be the same '<type>`class`</type>'.
396396
// CHECK: <kw>protocol</kw> <id>FakeClassRestrictedProtocol</id> : `<type>class</type>` {}
397+
398+
// CHECK: <kw>func</kw> <id>foo</id>() -> <kw>some</kw> <type>P</type> {}
399+
func foo() -> some P {}
400+
401+
// CHECK: <kw>func</kw> <id>foo</id>() -> <kw>some</kw> <type>P</type> & <type>Q</type> {}
402+
func foo() -> some P & Q {}

0 commit comments

Comments
 (0)