Mercurial > projects > ldc
diff tests/mini/dottypeexp.d @ 668:216b14b9a773
Add tests.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 07 Oct 2008 20:22:04 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/mini/dottypeexp.d Tue Oct 07 20:22:04 2008 +0200 @@ -0,0 +1,4 @@ +extern(C) int printf(char*, ...); +template Foo() { void test() { printf("test\n"); typeof(this).whee(); } } +class Bar { void whee() { printf("whee\n"); } mixin Foo!(); } +void main() { (new Bar).test(); }