This commit is contained in:
@@ -13,16 +13,6 @@ class TraitExpression<
|
|||||||
readonly traits: Traits,
|
readonly traits: Traits,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
get implements(): (
|
|
||||||
Pipe<Traits, [
|
|
||||||
Tuples.Map<TraitAbstractMembersFn>,
|
|
||||||
ExtendFn,
|
|
||||||
SimplifyFn,
|
|
||||||
]>
|
|
||||||
) {
|
|
||||||
throw new Error("Not meant to be called")
|
|
||||||
}
|
|
||||||
|
|
||||||
get extends(): (
|
get extends(): (
|
||||||
AbstractClass<
|
AbstractClass<
|
||||||
Pipe<[
|
Pipe<[
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { Identity, Pipe, Tuples } from "hotscript"
|
|
||||||
import { Implements, TraitAbstractMembers, expression, trait } from "."
|
import { Implements, TraitAbstractMembers, expression, trait } from "."
|
||||||
|
|
||||||
|
|
||||||
@@ -40,9 +39,6 @@ const ActiveStatefulSubscription = trait<ActiveStatefulSubscriptionAbstractMembe
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
// type Test2 = Simplify<MergeInheritanceTree<Test1>>
|
|
||||||
|
|
||||||
|
|
||||||
class TestSuperclass {
|
class TestSuperclass {
|
||||||
// id: number = 69
|
// id: number = 69
|
||||||
// static test = 69
|
// static test = 69
|
||||||
@@ -59,8 +55,8 @@ const builder = expression
|
|||||||
|
|
||||||
const exp = builder.get()
|
const exp = builder.get()
|
||||||
|
|
||||||
class User extends exp.extends implements (typeof exp.implements) {
|
class User extends exp.extends implements Implements<typeof exp> {
|
||||||
// id: bigint = -1n
|
id: bigint = -1n
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(new User())
|
console.log(new User())
|
||||||
|
|||||||
Reference in New Issue
Block a user