Skip to content

[hl] Compiler hang on recursive typedef #12256

Description

@Simn

@yuxiaomao Apologies, but:

function main() {
	function iterTree<T>(tree:Tree<T>) {
		return null;
	}
	iterTree(null);
}

typedef Tree<T> = {
	var left:Tree<T>;
}
Called from Hlcode.tsame.loop in file "src/generators/hlcode.ml", line 312, characters 17-28
Called from Hlcode.tsame.loop in file "src/generators/hlcode.ml", line 312, characters 17-28
Called from Hlcode.tsame.loop in file "src/generators/hlcode.ml", line 312, characters 17-28
Called from Hlcode.tsame.loop in file "src/generators/hlcode.ml", line 312, characters 17-28
Called from Hlcode.tsame.loop in file "src/generators/hlcode.ml", line 312, characters 17-28

Metadata

Metadata

Assignees

Labels

platform-hlEverything related to HashLink

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions