@@ -384,7 +384,7 @@ precedencegroup BitwiseShiftPrecedence {
384
384
// Standard postfix operators.
385
385
postfix operator ++
386
386
postfix operator --
387
- postfix operator ...
387
+ postfix operator ... : Comparable
388
388
389
389
// Optional<T> unwrapping operator is built into the compiler as a part of
390
390
// postfix expression grammar.
@@ -394,12 +394,12 @@ postfix operator ...
394
394
// Standard prefix operators.
395
395
prefix operator ++
396
396
prefix operator --
397
- prefix operator !
397
+ prefix operator ! : Bool
398
398
prefix operator ~ : BinaryInteger
399
399
prefix operator + : AdditiveArithmetic
400
400
prefix operator - : SignedNumeric
401
- prefix operator ...
402
- prefix operator ..<
401
+ prefix operator ... : Comparable
402
+ prefix operator ..< : Comparable
403
403
404
404
// Standard infix operators.
405
405
@@ -428,8 +428,8 @@ infix operator | : AdditionPrecedence, BinaryInteger
428
428
infix operator ^ : AdditionPrecedence, BinaryInteger
429
429
430
430
// FIXME: is this the right precedence level for "..." ?
431
- infix operator ... : RangeFormationPrecedence
432
- infix operator ..< : RangeFormationPrecedence
431
+ infix operator ... : RangeFormationPrecedence, Comparable
432
+ infix operator ..< : RangeFormationPrecedence, Comparable
433
433
434
434
// The cast operators 'as' and 'is' are hardcoded as if they had the
435
435
// following attributes:
@@ -454,11 +454,11 @@ infix operator ~= : ComparisonPrecedence
454
454
455
455
// "Conjunctive"
456
456
457
- infix operator && : LogicalConjunctionPrecedence
457
+ infix operator && : LogicalConjunctionPrecedence, Bool
458
458
459
459
// "Disjunctive"
460
460
461
- infix operator || : LogicalDisjunctionPrecedence
461
+ infix operator || : LogicalDisjunctionPrecedence, Bool
462
462
463
463
// User-defined ternary operators are not supported. The ? : operator is
464
464
// hardcoded as if it had the following attributes:
0 commit comments