File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -772,14 +772,14 @@ namespace {
772
772
}
773
773
774
774
auto VarD = dyn_cast<VarDecl>(VD);
775
- if (VD->isFinal () && !(VarD && VarD->isLet ()))
775
+ const auto &attrs = VD->getAttrs ();
776
+ if (attrs.hasAttribute <FinalAttr>() && !(VarD && VarD->isLet ()))
776
777
OS << " final" ;
777
- if (VD-> getAttrs () .hasAttribute <ObjCAttr>())
778
+ if (attrs .hasAttribute <ObjCAttr>())
778
779
OS << " @objc" ;
779
- if (VD-> getAttrs () .hasAttribute <DynamicAttr>())
780
+ if (attrs .hasAttribute <DynamicAttr>())
780
781
OS << " dynamic" ;
781
- if (auto *attr =
782
- VD->getAttrs ().getAttribute <DynamicReplacementAttr>()) {
782
+ if (auto *attr = attrs.getAttribute <DynamicReplacementAttr>()) {
783
783
OS << " @_dynamicReplacement(for: \" " ;
784
784
OS << attr->getReplacedFunctionName ();
785
785
OS << " \" )" ;
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend -dump-parse %s
2
+
3
+ // Make sure we don't do any Sema and don't crash.
4
+ extension X {
5
+ typealias Y = Z
6
+ }
You can’t perform that action at this time.
0 commit comments