comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/events/SelectionListener.d @ 62:059e3b45add7

Fix copy/paste bug
author Frank Benoit <benoit@tionex.de>
date Sat, 04 Apr 2009 10:39:19 +0200
parents 2e09b0e6857a
children
comparison
equal deleted inserted replaced
61:5ce9278ca82c 62:059e3b45add7
80 /// SWT extension 80 /// SWT extension
81 private class _DgSelectionListenerT(Dg,T...) : SelectionListener { 81 private class _DgSelectionListenerT(Dg,T...) : SelectionListener {
82 82
83 version(Tango){ 83 version(Tango){
84 alias ParameterTupleOf!(Dg) DgArgs; 84 alias ParameterTupleOf!(Dg) DgArgs;
85 static assert( is(DgArgs == Tuple!(CTabFolderEvent,T)), 85 static assert( is(DgArgs == Tuple!(SelectionEvent,T)),
86 "Delegate args not correct: "~DgArgs.stringof~" vs. (Event,"~T.stringof~")" ); 86 "Delegate args not correct: "~DgArgs.stringof~" vs. (Event,"~T.stringof~")" );
87 } else { // Phobos 87 } else { // Phobos
88 alias ParameterTypeTuple!(Dg) DgArgs; 88 alias ParameterTypeTuple!(Dg) DgArgs;
89 static assert( is(DgArgs == TypeTuple!(CTabFolderEvent,T)), 89 static assert( is(DgArgs == TypeTuple!(SelectionEvent,T)),
90 "Delegate args not correct: "~DgArgs.stringof~" vs. (Event,"~T.stringof~")" ); 90 "Delegate args not correct: "~DgArgs.stringof~" vs. (Event,"~T.stringof~")" );
91 } 91 }
92 92
93 Dg dg; 93 Dg dg;
94 T t; 94 T t;