Skip to content

compiles checks are just slightly to dumb #90

@crazymonkyyy

Description

@crazymonkyyy
void foo()(){static assert(0);}
unittest{
	import std;
	static if(__traits(compiles,foo)){
		"yay".writeln;
		foo;
	} else {
		";__;".writeln;
	}
}

Error: static assert: 0 is false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions