Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • FPC Source FPC Source
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 1,261
    • Issues 1,261
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 46
    • Merge requests 46
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • FPC
  • FPC SourceFPC Source
  • Issues
  • #20038
Closed
Open
Created Aug 23, 2011 by FPC Admin account@fpc_adminOwner

Unable to use strict priave type in nested procedure parameter

Original Reporter info from Mantis: alexvins
  • Reporter name: Alexander Shishkin

Description:

If class has some strict private type and it used as a parameter of nested procedure in method "Identifier not found" error occurs.

Steps to reproduce:

unit unit2;

{$mode objfpc}{$H+}

interface

type

  { TFoo }

  TFoo = class
  strict private
    type
      TBar = type integer;
  public
   procedure test;
  end;

implementation

{ TFoo }

procedure TFoo.test;
  procedure Inner(param: TBar)
  begin
  end;
begin

end;

end.

Mantis conversion info:

  • Mantis ID: 20038
  • Version: 2.7.1
  • Fixed in version: 3.0.0
  • Fixed in revision: 19641 (#7f7c665e)
  • Monitored by: » alexvins (Alexander Shishkin)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking