Created attachment 1386
minified testcase
when i try to compile my project, i got ICE with this message:
dmd: func.c:4413: virtual void CtorDeclaration::semantic(Scope*): Assertion `tf && tf->ty == Tfunction' failed.
seems that it was caused by 'import' inside struct in piece.d. if i'll remove that import, ICE disappears.
ICE will also disappear if i'll remove constructor in tree.d which causes 'undefined identifier' error.