Skip to content

Commit bca0994

Browse files
committed
Remove semantic hashbang error
1 parent 57da9a5 commit bca0994

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Tests/SwiftParserTest/translated/HashbangLibraryTests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ final class HashbangLibraryTests: XCTestCase {
2222
class Foo {}
2323
// Check that we diagnose and skip the hashbang at the beginning of the file
2424
// when compiling in library mode.
25-
""",
26-
diagnostics: [
27-
// TODO: Old parser expected error on line 1: hashbang line is allowed only in the main file
28-
]
25+
"""
2926
)
3027
}
3128

0 commit comments

Comments
 (0)