From fd9b883f924ca973205f37a83a00bc5bad05d258 Mon Sep 17 00:00:00 2001 From: LPeter1997 Date: Fri, 13 Oct 2023 13:36:43 +0200 Subject: [PATCH] Update FunctionBodyCodegen.cs --- .../Internal/OptimizingIr/FunctionBodyCodegen.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Draco.Compiler/Internal/OptimizingIr/FunctionBodyCodegen.cs b/src/Draco.Compiler/Internal/OptimizingIr/FunctionBodyCodegen.cs index c2b394440..e660ebd1d 100644 --- a/src/Draco.Compiler/Internal/OptimizingIr/FunctionBodyCodegen.cs +++ b/src/Draco.Compiler/Internal/OptimizingIr/FunctionBodyCodegen.cs @@ -279,6 +279,10 @@ public override IOperand VisitCallExpression(BoundCallExpression node) var irFunc = ExtractIrFunction(proc); if (irFunc is not null) { + if (receiver is not null) + { + throw new System.NotImplementedException(); + } irFunc.Codegen(this, callResult, args); } else