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

Array<Void> is introduced with incomprehensive array comprehension #8972

Closed
kaikoga opened this issue Nov 15, 2019 · 0 comments
Closed

Array<Void> is introduced with incomprehensive array comprehension #8972

kaikoga opened this issue Nov 15, 2019 · 0 comments
Labels
bug
Milestone

Comments

@kaikoga
Copy link
Contributor

@kaikoga kaikoga commented Nov 15, 2019

package;

class IfFalseArray {
    public static function main():Void {
        trace($type([if (false) 1]));
    }
}

Crashes and (at least tries to) dump .dot files on Haxe versions 4.0.0+ef18b627e and 3.4.4 (try.haxe.org)

Console output:

$ haxe --neko IfFalseArray.n --main IfFalseArray
While analyzing IfFalseArray.main
dot graph written to dump/neko/IfFalseArray.main
IfFalseArray.hx:5: characters 15-29 : Warning : Array<Void>
File "_build/src/optimization/analyzerTexprTransformer.ml", line 259, characters 6-12: Assertion failed
$
@Aurel300 Aurel300 added the bug label Nov 15, 2019
@Aurel300 Aurel300 added this to the Bugs milestone Nov 15, 2019
RealyUniqueName added a commit that referenced this issue Nov 16, 2019
RealyUniqueName added a commit that referenced this issue Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.