Walk the remaining forall binders of a nested constructor type and check each field domain for positivity against the augmented address set.
(
&mut self,
ty: &KExpr<M>,
augmented_addrs: &[Address],
)
| 1896 | return Err(TcError::Other( |
| 1897 | "positivity: nested ctor not found".into(), |
| 1898 | )); |
| 1899 | }, |
| 1900 | }; |
| 1901 | self.check_nested_ctor_fields( |
| 1902 | &ctor_ty, |
| 1903 | n_params, |
| 1904 | ¶m_args, |
| 1905 | &us, |
| 1906 | &augmented, |
| 1907 | )?; |
| 1908 | } |
| 1909 | |
| 1910 | Ok(()) |
| 1911 | }, |
| 1912 | _ => { |
| 1913 | Err(TcError::Other("positivity: not a valid inductive app".into())) |
| 1914 | }, |
| 1915 | } |
| 1916 | }, |
| 1917 | } |
| 1918 | } |
no test coverage detected