File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -767,9 +767,6 @@ _generics-bound_ ::= (No type bound)
767767 | `<` _type_ (The generics parameter has an upper bound)
768768 | '>' _type_ (The generics parameter has a lower bound)
769769
770- # A type parameter can have both upper and lower bounds, which can be specified in either order:
771- # `[T < UpperBound > LowerBound]` or `[T > LowerBound < UpperBound]`
772-
773770_default-type_ ::= (No default type)
774771 | `=` _type_ (The generics parameter has default type)
775772
@@ -781,6 +778,9 @@ _generics-unchecked_ ::= (Empty)
781778 | `unchecked` (Skips variance annotation validation)
782779```
783780
781+ A type parameter can have both upper and lower bounds, which can be specified in either order:
782+ ` [T < UpperBound > LowerBound] ` or ` [T > LowerBound < UpperBound] ` .
783+
784784RBS allows class/module/interface/type alias definitions and methods to be generic.
785785
786786``` rbs
You can’t perform that action at this time.
0 commit comments