PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/d/inherit_target_language_runme.1.d

#
D | 29 lines | 24 code | 5 blank | 0 comment | 0 complexity | 684b1159f0040d7b325cdda6e11bf287 MD5 | raw file
 1module inherit_target_language_runme;
 2
 3import inherit_target_language.BaseX;
 4import inherit_target_language.Derived1;
 5import inherit_target_language.Derived2;
 6import inherit_target_language.DerivedX;
 7import inherit_target_language.MultipleDerived1;
 8import inherit_target_language.MultipleDerived2;
 9import inherit_target_language.MultipleDerived3;
10import inherit_target_language.MultipleDerived4;
11
12void main() {
13  (new Derived1()).targetLanguageBaseMethod();
14  (new Derived2()).targetLanguageBaseMethod();
15
16  (new MultipleDerived1()).targetLanguageBaseMethod();
17  (new MultipleDerived2()).targetLanguageBaseMethod();
18  (new MultipleDerived3()).f();
19  (new MultipleDerived4()).g();
20
21  auto baseX = new BaseX();
22  baseX.basex();
23  baseX.targetLanguageBase2Method();
24
25  auto derivedX = new DerivedX();
26  derivedX.basex();
27  derivedX.derivedx();
28  derivedX.targetLanguageBase2Method();
29}