
fn void test()
{
	typeid x;
	$typefrom(2 > 1 ? int.typeid : double.typeid) xf;
	$typefrom(x) a; // #error: Expected a constant
}

fn void test2()
{
	var $x = 1;
	$typefrom($x) a; // #error: Expected a constant
}