Skip selector-gen for templates

This commit is contained in:
LunaTheFoxgirl 2024-12-14 17:30:26 +01:00
parent 5df19d9231
commit 8a7108f8c9
2 changed files with 5 additions and 1 deletions

View file

@ -25,7 +25,7 @@ class MyClass : NSObject
int x;
override static MyClass alloc() => cast(MyClass)super.alloc();
override MyClass init() { x = 42; }
override MyClass init() { x = 42; return this; }
@property bool isFourtyTwo() => x == 42;
@property void isFourtyTwo(bool value) { x = value ? 42 : 0; }