Check return type for equality as well.
This commit is contained in:
parent
944f2c7f8a
commit
6fc3283bfc
|
@ -64,7 +64,7 @@ public extension Method {
|
||||||
|
|
||||||
public func isEqual(to other: Token) -> Bool {
|
public func isEqual(to other: Token) -> Bool {
|
||||||
guard let other = other as? Method else { return false }
|
guard let other = other as? Method else { return false }
|
||||||
return self.name == other.name && self.parameters == other.parameters
|
return self.name == other.name && self.parameters == other.parameters && self.returnType == other.returnType
|
||||||
}
|
}
|
||||||
|
|
||||||
public func serialize() -> [String : Any] {
|
public func serialize() -> [String : Any] {
|
||||||
|
|
Loading…
Reference in New Issue