mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat: add unsound
module
This commit is contained in:
parent
fc75151f2a
commit
08770e84fc
9 changed files with 130 additions and 8 deletions
|
@ -4076,6 +4076,10 @@ impl NonDefaultParamSignature {
|
|||
Self { pat, t_spec }
|
||||
}
|
||||
|
||||
pub fn simple(name: Str) -> Self {
|
||||
Self::new(ParamPattern::VarName(VarName::from_str(name)), None)
|
||||
}
|
||||
|
||||
pub const fn inspect(&self) -> Option<&Str> {
|
||||
self.pat.inspect()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue