Working TraitExpressionBuilder
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-04 22:01:16 +01:00
parent 26daee364d
commit 1dd118d856
4 changed files with 67 additions and 65 deletions

View File

@@ -1,6 +1,4 @@
import { Call, ComposeLeft } from "hotscript"
import { Implements, TraitExpressionAbstractFn, abstract, expression, trait } from "."
import { SimplifyFn } from "./util"
import { Implements, abstract, expression, trait } from "."
const PrintsHelloOnNew = trait(
@@ -60,10 +58,7 @@ const builder = expression
)
const exp = builder.get()
type Abs = Call<ComposeLeft<[
TraitExpressionAbstractFn,
SimplifyFn,
]>, typeof exp>
type Abs = Implements<typeof exp>
// exp.subtrait(
// s => {