File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -3206,6 +3206,9 @@ class Serializer::DeclSerializer : public DeclVisitor<DeclSerializer> {
3206
3206
3207
3207
unsigned numNames = introducedDeclNames.size ();
3208
3208
3209
+ (void )evaluateOrDefault (S.getASTContext ().evaluator ,
3210
+ ResolveMacroConformances{theAttr, D}, {});
3211
+
3209
3212
unsigned numConformances = 0 ;
3210
3213
for (auto conformance : theAttr->getConformances ()) {
3211
3214
introducedDeclNames.push_back (
Original file line number Diff line number Diff line change 7
7
// RUN: %target-swift-frontend -swift-version 5 -typecheck -I%t -verify -primary-file %s %S/Inputs/macro_expand_other.swift -verify-ignore-unknown -load-plugin-library %t/%target-library-name(MacroDefinition) -dump-macro-expansions > %t/expansions-dump.txt 2>&1
8
8
// RUN: %FileCheck -check-prefix=CHECK-DUMP %s < %t/expansions-dump.txt
9
9
10
+ // Re-test with the macro library module emitted using -experimental-lazy-typecheck.
11
+ // RUN: %target-swift-frontend -enable-experimental-feature ExtensionMacros -swift-version 5 -emit-module -o %t/lazy/macro_library.swiftmodule %S/Inputs/macro_library.swift -module-name macro_library -load-plugin-library %t/%target-library-name(MacroDefinition) -experimental-lazy-typecheck
12
+ // RUN: %target-swift-frontend -swift-version 5 -typecheck -I%t/lazy -verify -primary-file %s %S/Inputs/macro_expand_other.swift -verify-ignore-unknown -load-plugin-library %t/%target-library-name(MacroDefinition) -dump-macro-expansions > %t/expansions-dump.txt 2>&1
13
+ // RUN: %FileCheck -check-prefix=CHECK-DUMP %s < %t/expansions-dump.txt
14
+
10
15
import macro_library
11
16
12
17
struct Treat { }
You can’t perform that action at this time.
0 commit comments