Skip to content

Instantly share code, notes, and snippets.

@simcop2387
Last active January 2, 2016 08:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simcop2387/8278526 to your computer and use it in GitHub Desktop.
Save simcop2387/8278526 to your computer and use it in GitHub Desktop.
d problem
-> % dub build
Checking dependencies in '/mnt/mintdisk/home/ryan/workspace/d-rpg'
Building configuration "application", build type debug
Compiling...
source/ui/widget/rawtext.d(5): Error: undefined identifier Widget
Run 'dub help' for usage information.
import ui.widget.rawtext;
void main() {
auto rt = new RawText();
rt.draw();
}
module ui.widget;
class Widget {
void draw() {
// Do nothing
}
}
module ui.widget.rawtext;
import ui.widget;
import std.stdio;
class RawText : Widget {
void draw() {
writeln("Hello World");
}
}
@simcop2387
Copy link
Author

_ is really a /, but gist doesn't let me do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment