Created
September 5, 2019 08:28
-
-
Save 623637646/d1b73c57c713aeb651902759b3038715 to your computer and use it in GitHub Desktop.
Discard + - * / for Double and Float
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
// Double | |
func + (leftAddend: Double, rightAddend: Double) -> Double { | |
fatalError() | |
} | |
func - (leftAddend: Double, rightAddend: Double) -> Double { | |
fatalError() | |
} | |
func * (leftAddend: Double, rightAddend: Double) -> Double { | |
fatalError() | |
} | |
func / (leftAddend: Double, rightAddend: Double) -> Double { | |
fatalError() | |
} | |
func += (lhs: inout Double, rhs: Double) { | |
fatalError() | |
} | |
func -= (lhs: inout Double, rhs: Double) { | |
fatalError() | |
} | |
func *= (lhs: inout Double, rhs: Double) { | |
fatalError() | |
} | |
func /= (lhs: inout Double, rhs: Double) { | |
fatalError() | |
} | |
// Float | |
func + (leftAddend: Float, rightAddend: Float) -> Float { | |
fatalError() | |
} | |
func - (leftAddend: Float, rightAddend: Float) -> Float { | |
fatalError() | |
} | |
func * (leftAddend: Float, rightAddend: Float) -> Float { | |
fatalError() | |
} | |
func / (leftAddend: Float, rightAddend: Float) -> Float { | |
fatalError() | |
} | |
func += (lhs: inout Float, rhs: Float) { | |
fatalError() | |
} | |
func -= (lhs: inout Float, rhs: Float) { | |
fatalError() | |
} | |
func *= (lhs: inout Float, rhs: Float) { | |
fatalError() | |
} | |
func /= (lhs: inout Float, rhs: Float) { | |
fatalError() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment