Re: import inside a class overrides symbols imported in module scope?

2010-12-09 Thread Pelle MÃ¥nsson
On 12/09/2010 10:53 PM, Trass3r wrote: It was quite hard to track that one down. In the following example the import statement was mixed into the class among other code so it wasn't as obvious as here. import std.traits; class Foo { import std.string; static assert(isNumeric!int); } foo.d(6):

import inside a class overrides symbols imported in module scope?

2010-12-09 Thread Trass3r
It was quite hard to track that one down. In the following example the import statement was mixed into the class among other code so it wasn't as obvious as here. import std.traits; class Foo { import std.string; static assert(isNumeric!int); } foo.d(6): Error: template insta