Can't import dll function

Using VS2022 with Elements 2735.

The compile error in the screenshot doesn’t occur in 2731. Could it have something to do with the brackets issue (E25855)?

Test project attached. (71.1 KB)

Looks like a regression from the fix where actual missing method bodies were ignored without error. will log.

As a workaround: does the import work ok if you add an (hopefully ignored) body to the method?

Logged as bugs://E25871.

bugs://E25871 was closed as fixed.

I’m afraid not, f I add brackets I get (E524) Method reaches end without returning a value. But I see that it’s already fixed, so I’ll wait for the release.

You’d have to add a return statement too, yes.