()
| 2772 | |
| 2773 | #[test] |
| 2774 | fn anyref_unwrap_array() -> Result<()> { |
| 2775 | let mut store = gc_store()?; |
| 2776 | let array_ty = ArrayType::new( |
| 2777 | store.engine(), |
| 2778 | FieldType::new(Mutability::Const, ValType::I32.into()), |
| 2779 | ); |
| 2780 | let pre = ArrayRefPre::new(&mut store, array_ty); |
| 2781 | let a = ArrayRef::new(&mut store, &pre, &Val::I32(0), 1)?; |
| 2782 | let any: Rooted<AnyRef> = a.into(); |
| 2783 | let _a2 = any.unwrap_array(&store)?; |
| 2784 | Ok(()) |
| 2785 | } |
| 2786 | |
| 2787 | #[test] |
| 2788 | fn anyref_matches_ty_any_and_eq() -> Result<()> { |
nothing calls this directly
no test coverage detected