mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-31 07:38:02 +00:00
fix: type alias bug
This commit is contained in:
parent
0c6c5e363f
commit
e6cf329f97
8 changed files with 42 additions and 28 deletions
|
@ -3135,8 +3135,7 @@ impl VarName {
|
|||
.content
|
||||
.chars()
|
||||
.next()
|
||||
.map(|c| c.is_uppercase())
|
||||
.unwrap_or(false)
|
||||
.map_or(false, |c| c.is_uppercase())
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -3146,12 +3145,7 @@ impl VarName {
|
|||
|
||||
#[inline]
|
||||
pub fn is_procedural(&self) -> bool {
|
||||
self.0
|
||||
.content
|
||||
.chars()
|
||||
.last()
|
||||
.map(|c| c == '!')
|
||||
.unwrap_or(false)
|
||||
self.0.content.chars().last().map_or(false, |c| c == '!')
|
||||
}
|
||||
|
||||
pub fn is_raw(&self) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue