Skip to content

Type inference not working on let variables #1534

Description

@CaiJimmy

What did you expect to happen?

Image

It works with declare variable but not let

How can we reproduce it (as minimally and precisely as possible)?

declare type local:item as {
    "a": "string"
};

declare variable $x as local:item := {
    "a": 'test'
};

let $x as local:item := {
    "a": "test"
}
return $x

Anything else we need to know?

No response

RumbleDB version

Details after running the RumbleDB, it will show version next to the logo.

OS version

Details
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Related Software versions

Details
$ java -version
# paste output here
$ mvn --version
# paste output here
$ ant -version
# paste output here
$ spark-submit --version
# paste output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions