Wrongly ambiguous extension methods

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Summary

Those functions are ambiguous, even tho they extend entirely independent classes:

(InAgent: agent).GetName(): string = ""
(InCharacter: fort_character).GetName(): string = ""
(InInt: int).GetName(): string = ""

Steps to Reproduce

Copy this into your code:

(InAgent: agent).GetName(): string = ""
(InCharacter: fort_character).GetName(): string = ""
(InInt: int).GetName(): string = ""

Expected Result

No errors

Observed Result

Errors

Platform(s)

all

Bump, this should be fixed as limits useability of extension methods greatly and will result in many compilation errors in existing projects when new extension methods are added to Verse by Epic.

1 Like

Adding along to this bump. This is a hugely disruptive problem. :sob::sob::sob:

Thank you, we’ll get someone to take a look.

This is expected behavior because fort_character is an interface. Because of backwards compatibility guarantees, we must assume that in the future a class c might inherit from interface i. Hence why the agent and fort_character overloads are conservatively marked as ambiguous.

FORT-825020 has been ‘Closed’. This is working as intended by design.