fix (preemptive): Add 'Option' case to exp switch expr
This commit is contained in:
1 parent
f7cade41c6
commit
bb068cf6b2
1 file changed
+1
@@ -54,6 +54,7 @@ namespace bts.api {
|
||||
Security.ContractOneofCase.Synthetic => security.Synthetic.Legs.First().Security.earliest_expiration(),
|
||||
Security.ContractOneofCase.Spread => security.Spread.Legs.First().Security.earliest_expiration(),
|
||||
Security.ContractOneofCase.Future => security.Future.expiration_date(),
|
||||
Security.ContractOneofCase.Option => security.Option.expiration_date(),
|
||||
_ => throw new NotImplementedException(),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user