Interpreter - Static methods are returned by the getter
This commit is contained in:
parent
75652b95cf
commit
77f14bfa8e
1 changed files with 1 additions and 3 deletions
|
@ -101,12 +101,10 @@ impl PropertyCarrier for ClassRef {
|
|||
if let Some(value) = class.fields.borrow().get(&name.lexeme) {
|
||||
return Ok(value.clone());
|
||||
}
|
||||
/*
|
||||
if let Some(method) = class.methods.get(&name.lexeme) {
|
||||
if let Some(method) = class.static_methods.get(&name.lexeme) {
|
||||
let bound_method = bind_method(method, Value::from(self.clone()));
|
||||
return Ok(Value::from(bound_method));
|
||||
}
|
||||
*/
|
||||
|
||||
Err(SloxError::with_token(
|
||||
ErrorKind::Runtime,
|
||||
|
|
Loading…
Reference in a new issue