https://issues.dlang.org/show_bug.cgi?id=18546

          Issue ID: 18546
           Summary: Improvement: Implicit Class Template Instantiation
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nob...@puremagic.com
          Reporter: default_357-l...@yahoo.de

Why does this not work? Should  this work?

class Foo(T) {
    this(T t) { }
}

auto foo = new Foo(5);

C++ can do it...

--

Reply via email to