WithWarnings needs to explicitly export toDisplayString.

It is not automatically delegated because it is implemented in the super type.
This commit is contained in:
Pavel Marek 2024-11-14 18:09:23 +01:00
parent f0dae474df
commit 5955ff3356

View File

@ -270,6 +270,12 @@ public final class WithWarnings extends EnsoObject {
throw asException(node);
}
@ExportMessage
public Object toDisplayString(
boolean allowSideEffects, @CachedLibrary("this.value") InteropLibrary interop) {
return interop.toDisplayString(value, allowSideEffects);
}
@Override
public String toString() {
return "WithWarnings{"