Skip to content

Commit a1567bd

Browse files
committed
Slightly clean up and improve testing for ObjC selectors
1 parent e106077 commit a1567bd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/SwiftParser/Attributes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ extension Parser {
458458
name: name,
459459
colon: nil,
460460
arena: self.arena))
461-
continue
461+
break
462462
}
463463

464464
let (unexpectedBeforeColon, colon) = self.expect(.colon)

Tests/SwiftParserTest/Attributes.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ final class AttributeTests: XCTestCase {
6363
"""
6464
@objc(zeroArg)
6565
class A { }
66+
67+
@objc(:::::)
68+
func f(_: Int, _: Int, _: Int, _: Int, _: Int) { }
6669
"""
6770
)
6871
}

0 commit comments

Comments
 (0)