Detect empty trait arrays

This commit is contained in:
Julien Valverdé
2024-02-01 04:09:52 +01:00
parent 2945cdb7ae
commit 7eb2b950a8
2 changed files with 13 additions and 6 deletions

View File

@@ -48,15 +48,16 @@ class TestSuperclass {
}
const exp = extendsAndExpresses(
const User = extendsAndExpresses(
TestSuperclass,
Identifiable<bigint>(),
// Identifiable<number>()
).then(e =>
class User
extends e.extends()
implements Implements<typeof e> {
id: bigint = -1n
}
)
// type ExpImpl = ImplStaticMembersExtendable<typeof TestSuperclass, typeof exp.traits>
class User extends exp.extends() implements Implements<typeof exp> {
id: bigint = -1n
}
new User().id