mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 15:59:20 +03:00
Add comment for is_function
This commit is contained in:
parent
0e74cc14cc
commit
22a84c8b21
@ -2135,6 +2135,8 @@ impl Subs {
|
||||
is_inhabited(self, var)
|
||||
}
|
||||
|
||||
/// Is the ground constructor (in the layout-determination sense) of this type a function?
|
||||
/// That is, is this a function modulo aliases and opaques?
|
||||
pub fn is_function(&self, mut var: Variable) -> bool {
|
||||
loop {
|
||||
match self.get_content_without_compacting(var) {
|
||||
|
Loading…
Reference in New Issue
Block a user