File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -5354,9 +5354,11 @@ void Parser::parseAbstractFunctionBody(AbstractFunctionDecl *AFD) {
5354
5354
return ;
5355
5355
}
5356
5356
5357
- // Record the curly braces but nothing inside.
5358
- SF.recordInterfaceToken (" {" );
5359
- SF.recordInterfaceToken (" }" );
5357
+ if (IsParsingInterfaceTokens) {
5358
+ // Record the curly braces but nothing inside.
5359
+ SF.recordInterfaceToken (" {" );
5360
+ SF.recordInterfaceToken (" }" );
5361
+ }
5360
5362
llvm::SaveAndRestore<bool > T (IsParsingInterfaceTokens, false );
5361
5363
5362
5364
if (isDelayedParsingEnabled ()) {
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %{python} %utils/split_file.py -o %t %s
3
+ // RUN: %target-swift-frontend -dump-interface-hash %t/a.swift 2> %t/a.hash
4
+ // RUN: %target-swift-frontend -dump-interface-hash %t/b.swift 2> %t/b.hash
5
+ // RUN: cmp %t/a.hash %t/b.hash
6
+
7
+ // BEGIN a.swift
8
+ func test( ) -> Int {
9
+ return 0
10
+ }
11
+
12
+ // BEGIN b.swift
13
+ func test( ) -> Int {
14
+ func inner( ) -> Int {
15
+ return 0
16
+ }
17
+ return inner ( )
18
+ }
You can’t perform that action at this time.
0 commit comments