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

Errors with interface names containing types #107

Open
Zash opened this issue Nov 16, 2016 · 0 comments
Open

Errors with interface names containing types #107

Zash opened this issue Nov 16, 2016 · 0 comments

Comments

@Zash
Copy link

Zash commented Nov 16, 2016

Consider the following interface:

interface thing
end

interface stringthinger
	thingify : (string) -> (thing)
end

stuff : stringthinger

Running tlc on a file containing require"things".stuff.thingify("Hello"); gives:

test.tl:1:1: type error, ./things.tld:9:1: syntax error, unexpected 'EOF', expecting ':'
require"things".stuff.thingify("Hello");
^

Renaming the interface to eg _stringthinger makes the error go away.

Noticed while writing type definitions involving a stringprep binding.

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