Expand To Show Full Article
Delphi Error - E2061 Local class or interface types not allowed - Developer Publish

Delphi Error – E2061 Local class or interface types not allowed

Delphi Compiler Error

E2061 Local class or interface types not allowed

Reason for the Error & Solution

Corresponds to object_local in previous compilers. Class and interface types cannot be declared inside a procedure body.