@@ -914,43 +914,6 @@ extension ${Self} : Strideable {
914
914
// Deprecated operators
915
915
//===----------------------------------------------------------------------===//
916
916
917
- @_transparent
918
- @available ( * , unavailable, message: " Use truncatingRemainder instead " )
919
- public func % ( lhs: ${ Self} , rhs: ${ Self} ) -> ${ Self} {
920
- fatalError( " % is not available. " )
921
- }
922
-
923
- @_transparent
924
- @available( * , unavailable, message: " Use formTruncatingRemainder instead " )
925
- public func %= ( lhs: inout ${ Self} , rhs: ${ Self} ) {
926
- fatalError ( " %= is not available. " )
927
- }
928
-
929
- @_transparent
930
- @available ( * , unavailable, message: " use += 1 " )
931
- @discardableResult
932
- public prefix func ++ ( rhs: inout ${ Self} ) -> ${ Self} {
933
- fatalError( " ++ is not available" )
934
- }
935
- @_transparent
936
- @available( * , unavailable, message: " use -= 1 " )
937
- @discardableResult
938
- public prefix func -- ( rhs: inout ${ Self} ) -> ${ Self} {
939
- fatalError( " -- is not available" )
940
- }
941
- @_transparent
942
- @available ( * , unavailable, message: " use += 1 " )
943
- @discardableResult
944
- public postfix func ++ ( lhs: inout ${ Self} ) -> ${ Self} {
945
- fatalError( " ++ is not available" )
946
- }
947
- @_transparent
948
- @available( * , unavailable, message: " use -= 1 " )
949
- @discardableResult
950
- public postfix func -- ( lhs: inout ${ Self} ) -> ${ Self} {
951
- fatalError( " -- is not available" )
952
- }
953
-
954
917
% if bits == 80 :
955
918
#endif
956
919
% end
@@ -1006,3 +969,40 @@ extension ${Self} {
1006
969
}
1007
970
1008
971
% end # for ( bits, signed) in allInts( )
972
+
973
+ @_transparent
974
+ @available ( * , unavailable, message: " Use truncatingRemainder instead " )
975
+ public func % < T: FloatingPoint> ( lhs: T, rhs: T) - > T {
976
+ fatalError ( " % is not available. " )
977
+ }
978
+
979
+ @_transparent
980
+ @available( * , unavailable, message: " Use formTruncatingRemainder instead " )
981
+ public func %= < T: FloatingPoint> ( lhs: T, rhs: T) {
982
+ fatalError ( " %= is not available. " )
983
+ }
984
+
985
+ @_transparent
986
+ @available( * , unavailable, message: " use += 1 " )
987
+ @discardableResult
988
+ public prefix func ++ < T: Arithmetic> ( rhs: T) - > T {
989
+ fatalError ( " ++ is not available " )
990
+ }
991
+ @_transparent
992
+ @available ( * , unavailable, message: " use -= 1 " )
993
+ @discardableResult
994
+ public prefix func -- < T: Arithmetic > ( rhs: T ) -> T {
995
+ fatalError ( " -- is not available " )
996
+ }
997
+ @_transparent
998
+ @available ( * , unavailable, message: " use += 1 " )
999
+ @discardableResult
1000
+ public postfix func ++ < T: Arithmetic > ( lhs: T ) -> T {
1001
+ fatalError ( " ++ is not available " )
1002
+ }
1003
+ @_transparent
1004
+ @available ( * , unavailable, message: " use -= 1 " )
1005
+ @discardableResult
1006
+ public postfix func -- < T: Arithmetic > ( lhs: T ) -> T {
1007
+ fatalError ( " -- is not available " )
1008
+ }
0 commit comments