Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Allocating inner nested classes with outer.new syntax highlighted as erroneous #36

Closed
vkrivopalov opened this issue Dec 16, 2013 · 1 comment

Comments

@vkrivopalov
Copy link

The following code snippet utilizes the "nested classes" feature of D and allocates inner class though the outer.new syntax.

module test;

import std.stdio;

class Outer {
int x = 5;
class Inner {
this() {
this.outer.x = 7;
}
}
}

void main() {

auto outer = new Outer;
writeln("And it was ", outer.x);

auto inner = outer.new Inner;

writeln("And it is ", outer.x);  

}

This is a valid compilable code but DDT plugin highlights the outer.new expression as if it contained an error.
ddt_ecl

@bruno-medeiros
Copy link
Contributor

Fixed in master

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants