Created
May 25, 2013 21:37
-
-
Save enjoysmath/5650870 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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