Code



Compilation output:

/d433/f500.d(25): Error: cannot implicitly convert expression (x) of type ulong to int /d433/f500.d(31): Error: template instance f500.foo!ulong error instantiating /d433/f500.d(12): instantiated from here: __lambda1!ulong /d433/f500.d(30): instantiated from here: assertCompilesWith!(ubyte, byte, ushort, short, uint, int, ulong, long, (x) { foo(x); } ) /d433/f500.d(30): instantiated from here: assertCompilesWith!(ubyte, byte, ushort, short, uint, int, ulong, long, (x) { foo(x); } ) /d433/f500.d(25): Error: cannot implicitly convert expression (x) of type long to int /d433/f500.d(31): Error: template instance f500.foo!long error instantiating /d433/f500.d(12): instantiated from here: __lambda1!long /d433/f500.d(30): instantiated from here: assertCompilesWith!(ubyte, byte, ushort, short, uint, int, ulong, long, (x) { foo(x); } ) /d433/f500.d(30): instantiated from here: assertCompilesWith!(ubyte, byte, ushort, short, uint, int, ulong, long, (x) { foo(x); } ) /d433/f500.d(30): Error: template instance f500.__unittestL28_2.assertCompilesWith!(ubyte, byte, ushort, short, uint, int, ulong, long, (x) { foo(x); } ) error instantiating

Paste info


Author: Guest
Views: 342
Private: no
Expires: Never
Uploaded: 31.07.15 1:56
Votes: 0

Compilation


Compiler: DMD 2.077.1 ( 2.077.1 )
Pointer size: m64

Actions