Merge branch 'dev' into deferred-tools
This commit is contained in:
commit
d31d9d2287
1 changed files with 3 additions and 3 deletions
|
|
@ -69,10 +69,10 @@ void invalidNodeReplacement
|
||||||
// @ts-expect-error Replacement cannot introduce a new error
|
// @ts-expect-error Replacement cannot introduce a new error
|
||||||
LayerNode.compile(a, [[a, Layer.effect(A, Effect.fail(new OtherError()))]])
|
LayerNode.compile(a, [[a, Layer.effect(A, Effect.fail(new OtherError()))]])
|
||||||
|
|
||||||
|
const nodeReplacementWithError = make({ service: A, layer: Layer.effect(A, Effect.fail(new OtherError())), deps: [] })
|
||||||
|
|
||||||
// @ts-expect-error Node replacement cannot introduce a new error
|
// @ts-expect-error Node replacement cannot introduce a new error
|
||||||
const invalidNodeErrorReplacement = () =>
|
LayerNode.compile(a, [[a, nodeReplacementWithError]])
|
||||||
LayerNode.compile(a, [[a, make({ service: A, layer: Layer.effect(A, Effect.fail(new OtherError())), deps: [] })]])
|
|
||||||
void invalidNodeErrorReplacement
|
|
||||||
|
|
||||||
class TagA extends Context.Service<TagA, {}>()("test/TagA") {}
|
class TagA extends Context.Service<TagA, {}>()("test/TagA") {}
|
||||||
class TagB extends Context.Service<TagB, {}>()("test/TagB") {}
|
class TagB extends Context.Service<TagB, {}>()("test/TagB") {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue