Closed miyurud closed 3 years ago
import ballerina/http;
service / on new http:Listener(8090) {
// this breaks
function bar() returns xml|error {
return xml `<grand_total>${1d}</grand_total>`;
}
// this is also fine
function bar1() returns xml {
return xml `<grand_total>${1d}</grand_total>`;
}
}
// this is fine
class B {
function bar() returns xml|error {
return xml `<grand_total>${1d}</grand_total>`;
}
}
Description: When I run the following sample service in Ballerina SL Alpha 5.11 the service crashes giving a lengthy error log.
The last part of the lengthy error I get is shown below,
Steps to reproduce:
bal run sample.bal
Affected Versions: I found this error in Ballerina SL Alpha 5.11
OS, DB, other environment details and versions: Ubuntu 20.04, JDK 11.0.8