@@ -22,9 +22,9 @@ } unittest { - auto p = new immutable(LexPosition)("hello.cpp", 123, 45); + auto p = new LexPosition("hello.cpp", 123, 45); auto t = new Token(p, "class", false); auto u = new Token(p, "class", true); assert_eq( t.pos, p ); @@ -372,11 +372,11 @@ return this; } /// Get the current position - immutable(LexPosition) currentPosition() const + LexPosition currentPosition() const { - return new immutable(LexPosition)(filename, lineno, column); + return new LexPosition(filename, lineno, column); } } unittest