Created
February 11, 2013 18:16
-
-
Save jpf91/4756326 to your computer and use it in GitHub Desktop.
This file contains 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
class RedBlackTree(alias less) | |
{ | |
int a; | |
int nested() | |
{ | |
return a; | |
} | |
struct Range | |
{ | |
auto @property empty() | |
{ | |
return nested(); | |
} | |
} | |
Range opSlice() | |
{ | |
return Range(); | |
} | |
} | |
void main() | |
{ | |
void a(){} | |
auto t = new RedBlackTree!(a); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment