소스 검색

Checking the compatibility of the procedure with the await function.

Henrique Gottardi Werlang 1 년 전
부모
커밋
e0da2d0e46
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      packages/pastojs/src/fppas2js.pp

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

@@ -6199,6 +6199,12 @@ begin
       if not CheckProcedureAsync(TPasProcedureType(TypeEl)) then
         Exit(cIncompatible);
       end
+    else if (ParamResolved.BaseType=btContext)
+        and (ParamResolved.IdentEl is TPasProcedure) then
+      begin
+      if not CheckProcedureAsync(TPasProcedure(ParamResolved.IdentEl).ProcType) then
+        Exit(cIncompatible)
+      end
     else
       begin
       {$IFDEF VerbosePas2JS}