File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,9 @@ class ModuleDecl
482
482
}
483
483
484
484
bool inSamePackage (ModuleDecl *other) {
485
- return !getPackageName ().empty () && getPackageName () == other->getPackageName ();
485
+ return other != nullptr &&
486
+ !getPackageName ().empty () &&
487
+ getPackageName () == other->getPackageName ();
486
488
}
487
489
488
490
// / Get the package associated with this module
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ import resilient_struct
56
56
import resilient_enum
57
57
58
58
// Concrete class with resilient stored property
59
- package final class ClassWithResilientProperty {
59
+ package class ClassWithResilientProperty {
60
60
package let p : Point
61
61
package let s : Size
62
62
package let color : Int32
@@ -65,7 +65,6 @@ package final class ClassWithResilientProperty {
65
65
self . p = p
66
66
self . s = s
67
67
self . color = color
68
-
69
68
}
70
69
}
71
70
You can’t perform that action at this time.
0 commit comments