Code



Compilation output:

@property iButton button(iButton b) { assert(cast(WindowsButton)b !is null, `Invalid object type dependency mismatch! Type: `~b.classinfo.name~` Type Expected: WindowsButton`); return button(cast(WindowsButton)b); }


Application output:

Trying WindowsButton with WindowsGui! WindowsButton ...WindowsButton works in WindowsGui! Trying LinuxButton with WindowsGui!


Application error:

core.exception.AssertError@/home/d446/f125.d(152): Invalid object type dependency mismatch! Type: f125.iButton Type Expected: WindowsButton ---------------- ./f125(_d_assert_msg+0x45) [0x467b11] ./f125(@property f125.iButton f125.WindowsGui.button(f125.iButton)+0xfd) [0x460b21] ./f125(_Dmain+0xe6) [0x460d3a] ./f125(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll().void __lambda1()+0x18) [0x468f08] ./f125(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x468e62] ./f125(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x30) [0x468ec8] ./f125(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x468e62] ./f125(_d_run_main+0x1a3) [0x468de3] ./f125(main+0x17) [0x466c2b] /usr/lib/libc.so.6(__libc_start_main+0xf5) [0x40967a15] ----------------

Paste info


Author: Guest
Views: 445
Private: no
Expires: Never
Uploaded: 24.02.14 17:27
Votes: 0

Compilation


Compiler: DMD 2.077.1 ( 2.077.1 )
Pointer size: m64

Actions