Check return type for equality as well.

This commit is contained in:
Matyáš Kříž 2018-11-12 11:13:36 +01:00
parent 944f2c7f8a
commit 6fc3283bfc
1 changed files with 1 additions and 1 deletions

View File

@ -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] {