Skip to content

Commit

Permalink
Make test checking for conversion to param (#1620)
Browse files Browse the repository at this point in the history
  • Loading branch information
rylev authored Mar 18, 2022
1 parent a09313e commit a8c1a5a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions crates/tests/nightly_interface/tests/com.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ fn test_custom_interface() -> windows::core::Result<()> {
p.GetClassID(&mut b).ok()?;
assert_eq!(b, "117fb826-2155-483a-b50d-bc99a2c7cca3".into());

CheckConversionWorks(p);

Ok(())
}
}

pub fn CheckConversionWorks<'a, P>(_p: P)
where
P: windows::core::IntoParam<'a, windows::core::IUnknown>,
{
}

0 comments on commit a8c1a5a

Please sign in to comment.