From 741d7c62760b20bf3dd8c838488acc759a855a9c Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Mon, 22 Jul 2024 02:42:36 +0900 Subject: [PATCH] Also add bug test case --- debug/features/intersection.ts | 17 ++++------------- .../error_nonsensible_intersection.ts | 6 ++++++ 2 files changed, 10 insertions(+), 13 deletions(-) create mode 100644 errors/src/nonsensible/error_nonsensible_intersection.ts diff --git a/debug/features/intersection.ts b/debug/features/intersection.ts index 4fe57c5f00..067c27f4fd 100644 --- a/debug/features/intersection.ts +++ b/debug/features/intersection.ts @@ -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().toString()); diff --git a/errors/src/nonsensible/error_nonsensible_intersection.ts b/errors/src/nonsensible/error_nonsensible_intersection.ts new file mode 100644 index 0000000000..a5ed193825 --- /dev/null +++ b/errors/src/nonsensible/error_nonsensible_intersection.ts @@ -0,0 +1,6 @@ +import typia from "typia"; + +type Art = `${string}art${string}`; +type Bar = `${string}bar${string}`; + +typia.createIs();