Skip to content

Instantly share code, notes, and snippets.

@enjoysmath
Created May 25, 2013 21:37
Show Gist options
  • Save enjoysmath/5650870 to your computer and use it in GitHub Desktop.
Save enjoysmath/5650870 to your computer and use it in GitHub Desktop.
module main;
import std.stdio;
interface A {}
class B(T) : A
{
private:
T val;
public:
this(T val_)
{
val = val_;
}
}
int main(string[] argv)
{
auto b = B!(uint)(7);
writeln("Hello D-World!");
readln();
return 0;
}
Building Debug\ConsoleApp8.exe...
main.d(20): Error: no property 'opCall' for type 'main.B!(uint).B'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment