Skip to content

Commit 0e0a4e6

Browse files
committed
[syntax-map] Add a test for inout in its correct position
1 parent 4a4bbe8 commit 0e0a4e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/IDE/coloring.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ func test4(inout a: Int) {
278278
// CHECK: <kw>if</kw> <kw>#available</kw> (<kw>OSX</kw> >= <float>10.10</float>, <kw>iOS</kw> >= <float>8.01</float>) {<kw>let</kw> OSX = <str>"iOS"</str>}}{{$}}
279279
if #available (OSX >= 10.10, iOS >= 8.01) {let OSX = "iOS"}}
280280

281+
// CHECK: <kw>func</kw> test4b(a: <kw>inout</kw> <type>Int</type>) {{{$}}
282+
func test4b(a: inout Int) {
283+
}
284+
281285
// CHECK: <kw>class</kw> MySubClass : <type>MyCls</type> {
282286
class MySubClass : MyCls {
283287
// CHECK: <attr-builtin>override</attr-builtin> <kw>func</kw> foo(x: <type>Int</type>) {}

0 commit comments

Comments
 (0)