blob: cf2480e9549f6215abb7f2ee75089c9ba5f7c884 [file] [log] [blame]
// EXTRA_OBJC_SOURCES:
/*
TEST_OUTPUT:
---
fail_compilation/objc_class3.d(15): Error: function `objc_class3.A.test!int.test` template cannot have an Objective-C selector attached
fail_compilation/objc_class3.d(21): Error: template instance `objc_class3.A.test!int` error instantiating
---
*/
import core.attribute : selector;
extern (Objective-C)
extern class A
{
void test(T)(T a) @selector("test:"); // selector defined for template
}
void test()
{
A a;
a.test(3);
}