Skip to content

Commit ecb0d94

Browse files
committed
Fix ArgType constructor
1 parent e87c0d2 commit ecb0d94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Src/IronPython/Modules/_ast.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,9 @@ public ArgType(string arg, object annotation) : this() {
548548
this.annotation = annotation;
549549
}
550550

551-
internal ArgType(Parameter parameter) {
551+
internal ArgType(Parameter parameter) : this() {
552552
arg = parameter.Name;
553-
annotation = Convert(parameter.Annotation);
553+
annotation = parameter.Annotation == null ? null : Convert(parameter.Annotation);
554554
}
555555

556556
public string arg { get; set; }

0 commit comments

Comments
 (0)