From 4272b71d4a6a920ab5f6f7f007c86f2b50f35627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Sun, 17 Mar 2024 11:14:05 +0100 Subject: [PATCH] Tests --- src/tests.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/tests.ts b/src/tests.ts index af9b93f..7d7278c 100644 --- a/src/tests.ts +++ b/src/tests.ts @@ -28,6 +28,15 @@ const Identifiable = () => trait }) .build() +const ImplementsIdentifiable = (defaultID: ID) => expression + .expresses(Identifiable()) + .build() + .subtrait() + .implement(Super => class ImplementsIdentifiable extends Super { + readonly id = defaultID + }) + .build() + const StatefulSubscription = trait .abstract(Super => class extends Super { declare readonly isStatefulSubscription: true