Skip to content

Commit

Permalink
Also add bug test case
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Jul 21, 2024
1 parent 555be4f commit 741d7c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
17 changes: 4 additions & 13 deletions debug/features/intersection.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import typia from "typia";

console.log(
typia.createIs<2 & number>().toString(),
typia.createIs<3 & 4 & number>().toString(),
typia
.createIs<
[
{
id: never;
},
]
>()
.toString(),
);
type Art = `${string}art${string}`;
type Bar = `${string}bar${string}`;

console.log(typia.createIs<Art & Bar>().toString());
6 changes: 6 additions & 0 deletions errors/src/nonsensible/error_nonsensible_intersection.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import typia from "typia";

type Art = `${string}art${string}`;
type Bar = `${string}bar${string}`;

typia.createIs<Art & Bar>();

0 comments on commit 741d7c6

Please sign in to comment.