Resolve a unit-variant constructor (`None`) against the expected enum type, returning its mangled variant name.
(&self, name: &str, expected: Option<&Type>)
| 1736 | } |
| 1737 | } |
| 1738 | Ok(()) |
| 1739 | } |
| 1740 | |
| 1741 | fn specialize_function( |
| 1742 | declaration: &mut Declaration, |
| 1743 | base_name: &str, |
| 1744 | type_args: &[Type], |
| 1745 | substitutions: &Substitutions, |
| 1746 | ) { |
| 1747 | let DeclNode::Function { |
| 1748 | name, |
no test coverage detected