diff --git a/ts-rs/tests/generics.rs b/ts-rs/tests/generics.rs index c7f6c713d..fb0327bc8 100644 --- a/ts-rs/tests/generics.rs +++ b/ts-rs/tests/generics.rs @@ -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: T, @@ -195,10 +191,9 @@ fn inline_with_bounds() { Generic::<&'static str>::decl(), "type Generic = { t: T, };" ); - // ^^^^^^^^^^^^ Replace with something else assert_eq!( Container::decl(), - "type Container = { g: Generic, gi: { t: string, }, t: number, };" // Actual output: { g: Generic, gi: { t: T, }, t: T, } + "type Container = { g: Generic, gi: { t: string, }, t: number, };" ); }