Mercurial > projects > ldc
view tests/mini/nested20.d @ 906:f1ed7fe85138
Casts from interface to class generally need to be dynamic. Fixes #189.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 25 Jan 2009 12:35:11 +0100 |
parents | 720ec515c300 |
children |
line wrap: on
line source
extern(C) int printf(char*, ...); void main() { int[] arr = [1]; foreach(s; arr) { void foo() { printf("n %d\n", s); } printf("o1 %d\n", s); foo(); printf("o2 %d\n", s); } }