Add OptionalAndUnionArguments test

This commit is contained in:
Anton Danilkin
2018-08-13 23:18:16 +03:00
parent 7840367476
commit c666f752fa
5 changed files with 43 additions and 6 deletions

View File

@ -789,7 +789,10 @@ impl<'src> WebidlParse<'src, &'src str> for weedle::interface::ConstMember<'src>
};
let ty = match idl_type.to_syn_type(TypePosition::Return) {
None => return Ok(()),
None => {
warn!("Can not convert const type to syn type: {:?}", idl_type);
return Ok(());
},
Some(ty) => ty,
};