Mercurial > projects > dstress
view run/t/typedef_19_B.d @ 1513:45c339264b57
[Issue 1125] Segfault using tuple in asm code, when size not specified
Don Clugston <clugdbug@yahoo.com.au>
2007-04-11
http://d.puremagic.com/issues/show_bug.cgi?id=1125
author | thomask |
---|---|
date | Mon, 23 Apr 2007 18:09:16 +0000 |
parents | 6d49ea394165 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Anders Runesson <anders@runesson.info> // @date@ 2006-07-16 // @uri@ news:1153058426.5844.3.camel@localhost // @desc@ typedef, implicit cast, bug or feature? module dstress.run.t.typedef_19_B; class A{ int func(int i){ return i + 1; } } typedef A B; class C : B{ override int func(int i){ return A.func(i) * 2; } } int main(){ C c = new C(); if(c.func(2) != 6){ assert(0); } return 0; }