blob: 41cddbf33dd3634e825f94de010af2f83ec4237d [file] [log] [blame]
/*
TEST_OUTPUT:
---
fail_compilation/fail11163.d(12): Error: cannot implicitly convert expression `foo()` of type `int[]` to `immutable(int[])`
fail_compilation/fail11163.d(13): while evaluating `pragma(msg, a)`
---
*/
int[] foo() {
return [1];
}
void main() {
immutable a = foo();
pragma(msg, a);
}