Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuple should equal record #14

Closed
julianhyde opened this issue Mar 2, 2020 · 1 comment
Closed

Tuple should equal record #14

julianhyde opened this issue Mar 2, 2020 · 1 comment

Comments

@julianhyde
Copy link
Collaborator

A tuple with 3 fields should be of the same type as a record with fields named "1", "2", "3":

./morel
= (1, true, "yes") = {1 = 1, 2 = true, 3 = "yes"};
java.lang.RuntimeException: Cannot deduce type: conflict: tuple(int, bool, string) vs record:1:2:3(T6, T7, T8)
	at net.hydromatic.morel.compile.TypeResolver.deduceType_(TypeResolver.java:114)
	at net.hydromatic.morel.compile.TypeResolver.deduceType(TypeResolver.java:91)
	at net.hydromatic.morel.compile.Compiles.prepareDecl(Compiles.java:89)
	at net.hydromatic.morel.compile.Compiles.prepareStatement(Compiles.java:79)
	at net.hydromatic.morel.Shell.run(Shell.java:249)
	at net.hydromatic.morel.Shell.main(Shell.java:75)
@julianhyde
Copy link
Collaborator Author

julianhyde commented Mar 2, 2020

Fixed in b1118b9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant