Unit ok_generic_multiple_constraints
Description
Test that generics with types separated by semicolons are parsed correctly.
See https://docwiki.embarcadero.com/RADStudio/Sydney/en/Constraints_in_Generics: """When you specify constraints, you separate multiple type parameters by semicolons, as you do with a parameter list declaration: """
Overview
Classes, Interfaces, Objects and Records
| Name | Description |
|---|---|
Class TMyClass |
|
Class TMyClassWithConstraints |
|
Class TMyClassWithConstraints2 |
Types
TMethodFunc = function(Arg: A): R of object; |
TMethodFunc2 = function(Arg1: A; Arg2: B): R of object; |
Description
Types
TMethodFunc = function(Arg: A): R of object; |
|
Generic type aliases with semicolons (in type section) |
TMethodFunc2 = function(Arg1: A; Arg2: B): R of object; |
|
This item has no description. |