View Issue Details

IDProjectCategoryView StatusLast Update
0031710FPCFCLpublic2017-04-25 15:35
ReporterAndrey ZubarevAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product VersionProduct Build 
Target Version3.2.0Fixed in Version3.1.1 
Summary0031710: fcl-passrc error 'var' keyword before methods in class and objects
Description{$mode objfpc}
unit test;
interface
type
  pFiber = ^Fiber;
  Fiber = object
   type
    ResumeResult = (FiberFinished);
    ResumeResults = set of ResumeResult;
   var
    finished: boolean;
    function Split: pFiber;virtual;abstract;
   type
    HumanFormat = (HumanFormat);
   var
    function Human(format: HumanFormat): string;virtual;abstract;
   private
    h: pointer;
    const
    StackSize = 64 * 1024;
  end;
implementation
end.

Gives Parser error: "Expected "Identifier" at token "function" in file E:\zcad\other\pudgb\passrcerrors.pas at line 16 column 12"
TagsNo tags attached.
Fixed in Revision35947
FPCOldBugId
FPCTarget
Attached Files

Relationships

related to 0031707 closedMichael Van Canneyt fcl-passrc error on class functions in objects 

Activities

Michael Van Canneyt

2017-04-25 14:23

administrator   ~0099921

Fixed, thanks for reporting
(but what a horrible syntax :/ )

Andrey Zubarev

2017-04-25 15:35

reporter   ~0099927

Thanks!

Issue History

Date Modified Username Field Change
2017-04-24 20:03 Andrey Zubarev New Issue
2017-04-24 22:50 Michael Van Canneyt Assigned To => Michael Van Canneyt
2017-04-24 22:50 Michael Van Canneyt Status new => assigned
2017-04-25 14:23 Michael Van Canneyt Fixed in Revision => 35947
2017-04-25 14:23 Michael Van Canneyt Note Added: 0099921
2017-04-25 14:23 Michael Van Canneyt Status assigned => resolved
2017-04-25 14:23 Michael Van Canneyt Fixed in Version => 3.1.1
2017-04-25 14:23 Michael Van Canneyt Resolution open => fixed
2017-04-25 14:23 Michael Van Canneyt Target Version => 3.2.0
2017-04-25 14:26 Michael Van Canneyt Relationship added related to 0031707
2017-04-25 15:35 Andrey Zubarev Note Added: 0099927
2017-04-25 15:35 Andrey Zubarev Status resolved => closed