Linq in XML literals do not work

The following code works in VB (console framework app):

image

The output is:
image

Converted to Mercury, it doesn’t build:

The build log: buildlog (2).txt (34.3 KB)

The project to reproduce: ConsoleApp31.zip (31.6 KB)

weird error too. WTH does it get DateTime from…

1 Like

Logged as bugs://E25544.

        Dim X = <li>
                    <%= From num In MyList
                        Select
                        <ul><%= 5 %> // H3 parameter 1 is "Int32" should be "not nullable RemObjects.Elements.RTL.DateTime"
                        </ul>
                    %>
                </li>

fails to, but

        Dim X = <li>
                    <%= From num In MyList
                        Select
                        <ul><%= "foo" %>
                        </ul>
                    %>
                </li>

is fine. very strange.

Not related to Line, tis fails too

        Dim X = <li> <%= 5 %> </li> // H3 parameter 1 is "Int32" should be "not nullable RemObjects.Elements.RTL.DateTime"

seems it just doesn’t like Integers in <%=%>

bugs://E25544 was closed as fixed.

It’s fixed for .Net, but the same problem is still there in WASM.

Project to reproduce: Module12 2.bugreport.zip (1.6 MB)

Build log: Module12 2.bugreport.txt (14.1 KB)

bugs://E25544 was reopened.

bugs://E25544 was closed as fixed.