Mercurial > projects > dstress
changeset 1155:484211f83bfc
wrong function overload
Karen Lanrap <karen@digitaldaemon.com>
2006-09-27
news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61
author | thomask |
---|---|
date | Fri, 29 Sep 2006 06:55:54 +0000 |
parents | 31cf6fcdd6d7 |
children | 55aa092171eb |
files | nocompile/e/enum_50_A.d nocompile/e/enum_50_B.d nocompile/e/enum_50_C.d nocompile/e/enum_50_D.d nocompile/e/enum_50_E.d |
diffstat | 5 files changed, 160 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/enum_50_A.d Fri Sep 29 06:55:54 2006 +0000 @@ -0,0 +1,30 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Karen Lanrap <karen@digitaldaemon.com> +// @date@ 2006-09-27 +// @uri@ news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61 +// @desc@ wrong function overload + +// __DSTRESS_ELINE__ 27 + +module dstress.nocompile.e.enum_50_A; + +enum Color{ + RED +} + +enum Age{ + OLD +} + +void foo(Color c){ + assert(0); +} + +int main(){ + foo(Age.OLD); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/enum_50_B.d Fri Sep 29 06:55:54 2006 +0000 @@ -0,0 +1,32 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Karen Lanrap <karen@digitaldaemon.com> +// @date@ 2006-09-27 +// @uri@ news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61 +// @desc@ wrong function overload + +// __DSTRESS_ELINE__ 29 + +module dstress.nocompile.e.enum_50_B; + +enum Color{ + RED +} + +enum Age{ + OLD +} + +struct S{ + static void foo(Color c){ + assert(0); + } +} + +int main(){ + S.foo(Age.OLD); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/enum_50_C.d Fri Sep 29 06:55:54 2006 +0000 @@ -0,0 +1,32 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Karen Lanrap <karen@digitaldaemon.com> +// @date@ 2006-09-27 +// @uri@ news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61 +// @desc@ wrong function overload + +// __DSTRESS_ELINE__ 29 + +module dstress.nocompile.e.enum_50_C; + +enum Color{ + RED +} + +enum Age{ + OLD +} + +class C{ + static void foo(Color c){ + assert(0); + } +} + +int main(){ + C.foo(Age.OLD); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/enum_50_D.d Fri Sep 29 06:55:54 2006 +0000 @@ -0,0 +1,33 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Karen Lanrap <karen@digitaldaemon.com> +// @date@ 2006-09-27 +// @uri@ news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61 +// @desc@ wrong function overload + +// __DSTRESS_ELINE__ 30 + +module dstress.nocompile.e.enum_50_D; + +enum Color{ + RED +} + +enum Age{ + OLD +} + +class C{ + void foo(Color c){ + assert(0); + } +} + +int main(){ + C c = new C(); + c.foo(Age.OLD); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/e/enum_50_E.d Fri Sep 29 06:55:54 2006 +0000 @@ -0,0 +1,33 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Karen Lanrap <karen@digitaldaemon.com> +// @date@ 2006-09-27 +// @uri@ news:Xns984BB274364EFdigitaldaemoncom@63.105.9.61 +// @desc@ wrong function overload + +// __DSTRESS_ELINE__ 30 + +module dstress.nocompile.e.enum_50_E; + +enum Color{ + RED +} + +enum Age{ + OLD +} + +struct S{ + void foo(Color c){ + assert(0); + } +} + +int main(){ + S s; + s.foo(Age.OLD); + + return 0; +}