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

Stack overflow on recursive signatures #30

Closed
Simn opened this issue Apr 1, 2019 · 6 comments
Closed

Stack overflow on recursive signatures #30

Simn opened this issue Apr 1, 2019 · 6 comments

Comments

@Simn
Copy link
Owner

Simn commented Apr 1, 2019

E.g.

typedef T = haxe.ds.Vector<T -> Void>;

class Main {
	static public function main() {

	}

	static function x(t:T) { }
}

This probably affects all compound signature types.

@Simn
Copy link
Owner Author

Simn commented Apr 1, 2019

This one is a bit concerning, not sure what signature I'm supposed to generate here.

@nadako
Copy link
Collaborator

nadako commented Apr 1, 2019

In Kotlin,

typealias T = Array<(T)->Unit>

just gives error: recursive type alias in expansion: T. I wonder if a typedef like this makes sense...

@Simn
Copy link
Owner Author

Simn commented Apr 1, 2019

What I can tell you is that somewhere in our unit tests something like this exists.

@Simn
Copy link
Owner Author

Simn commented Apr 2, 2019

Simn added a commit that referenced this issue Apr 2, 2019
@nadako
Copy link
Collaborator

nadako commented Apr 2, 2019

Well, apparently you dealt with this once already: ca29a4f

@Simn
Copy link
Owner Author

Simn commented Apr 2, 2019

The problem here is that we need a value...

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

2 participants