Skip to content

Commit

Permalink
enable test for #214
Browse files Browse the repository at this point in the history
  • Loading branch information
NyxCode committed Feb 16, 2024
1 parent 61c9692 commit ebfa532
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ts-rs/tests/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,7 @@ fn inline() {
}

#[test]
#[ignore = "We haven't figured out how to inline generics with bounds yet"]
#[allow(unreachable_code)]
fn inline_with_bounds() {
todo!("FIX ME: https://github.com/Aleph-Alpha/ts-rs/issues/214");

#[derive(TS)]
struct Generic<T: ToString> {
t: T,
Expand All @@ -195,10 +191,9 @@ fn inline_with_bounds() {
Generic::<&'static str>::decl(),
"type Generic<T> = { t: T, };"
);
// ^^^^^^^^^^^^ Replace with something else
assert_eq!(
Container::decl(),
"type Container = { g: Generic<string>, gi: { t: string, }, t: number, };" // Actual output: { g: Generic<string>, gi: { t: T, }, t: T, }
"type Container = { g: Generic<string>, gi: { t: string, }, t: number, };"
);
}

Expand Down

0 comments on commit ebfa532

Please sign in to comment.