From 289bfc94884cb7c8f56690993d93818785d3bc57 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Mon, 10 Feb 2020 19:52:17 +0300 Subject: [PATCH] C: fix Function.get when getting function from different class --- .../java/org/teavm/backend/c/intrinsic/FunctionIntrinsic.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/org/teavm/backend/c/intrinsic/FunctionIntrinsic.java b/core/src/main/java/org/teavm/backend/c/intrinsic/FunctionIntrinsic.java index 380dad851..ce115b1d9 100644 --- a/core/src/main/java/org/teavm/backend/c/intrinsic/FunctionIntrinsic.java +++ b/core/src/main/java/org/teavm/backend/c/intrinsic/FunctionIntrinsic.java @@ -96,6 +96,7 @@ public class FunctionIntrinsic implements Intrinsic { return; } + context.importMethod(method, true); context.writer().print("&").print(context.names().forMethod(method)); } }