Parcourir la source

pastojs: error on method in record, bug #34518

git-svn-id: trunk@40259 -
Mattias Gaertner il y a 6 ans
Parent
commit
799adf1d99
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      packages/pastojs/src/fppas2js.pp

+ 3 - 0
packages/pastojs/src/fppas2js.pp

@@ -3091,6 +3091,9 @@ var
   ptm: TProcTypeModifier;
   TypeEl, ElTypeEl: TPasType;
 begin
+  if El.Parent.Parent is TPasRecordType then
+    RaiseNotYetImplemented(20181107183603,El,'methods in records');
+
   inherited FinishProcedureType(El);
 
   if El is TPasFunctionType then