mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
23 lines
531 B
D
23 lines
531 B
D
// EXTRA_OBJC_SOURCES:
|
|
|
|
import core.attribute : selector;
|
|
|
|
extern (Objective-C)
|
|
extern class A
|
|
{
|
|
void oneTwo(int a, int b) pure @selector("one:two:");
|
|
void test(int a, int b, int c) @selector("test:::");
|
|
}
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=19494
|
|
extern (Objective-C) extern class NSObject
|
|
{
|
|
extern (Objective-C) extern class Class {}
|
|
}
|
|
|
|
// https://issues.dlang.org/show_bug.cgi?id=19699
|
|
// Declaring a root class with a method with a body
|
|
extern(Objective-C) class Test
|
|
{
|
|
void foo() @selector("foo") {}
|
|
}
|