Disallow import type { type a } from … (#305)

This commit is contained in:
Daniel Tschinder
2017-01-17 20:34:20 +01:00
committed by GitHub
parent 28c467e8fe
commit 999b655ca6
4 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
import typeof {typeof t} from "foo";
import type {type t} from "foo";

View File

@@ -0,0 +1,3 @@
{
"throws": "`The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements` (1:15)"
}