For example:
class Foo { void bar(T)(T t) { } } void main() { Foo foo = new Foo; foo.bar(1); // int foo.bar(2f); // float foo.bar("3"); // string }// pragma(msg, TemplateThatGetsTemplateUsages!(Foo.bar)) would print:
// (int, float, string)
For example:
class Foo { void bar(T)(T t) { } } void main() { Foo foo = new Foo; foo.bar(1); // int foo.bar(2f); // float foo.bar("3"); // string }// pragma(msg, TemplateThatGetsTemplateUsages!(Foo.bar)) would print:
// (int, float, string)