Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions Sources/DiceKit/DieSide.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ public struct DieSide<OutputType: Hashable>: Hashable {//If not Hashable, ensure
/// The value that this DieSide will return when rolled.
public let value: OutputType

public static func == (lhs: DieSide, rhs: DieSide) -> Bool { //IMPORTANT NOTE: THIS DOES NOT ACCEPT `DieSide`s WITH DIFFERENT GENERIC ARGUMENTS
guard type(of: lhs.value) == type(of: rhs.value) else {
return false
}
public static func == (lhs: DieSide, rhs: DieSide) -> Bool {
return lhs.value == rhs.value
}

Expand Down