mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
11 lines
255 B
D
11 lines
255 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/ice8309.d(10): Error: incompatible types for `(() => 1.0) : (() => 1)`: `double function() pure nothrow @nogc @safe` and `int function() pure nothrow @nogc @safe`
|
|
---
|
|
*/
|
|
|
|
void main()
|
|
{
|
|
auto x = [()=>1.0, ()=>1];
|
|
}
|