test: remove redundant runtime test for `type` identifier expressions

Coverage is already provided by the validator samples (declaration-tag-invalid-type-2
exercises the fall-through path; declaration-tag-invalid-type-unicode/-generic exercise
the parse-confirmed type-alias error path).
refactor-declaration-tag-parsing
baseballyama 2 days ago
parent 4bf2a373e7
commit b48ad46381

@ -1,5 +0,0 @@
import { test } from '../../test';
export default test({
html: `<ul><li>a</li><li>b</li><li>All types</li></ul><p data-cast="">cast</p><p data-generic-call="">generic-call</p><p data-generic-call-space="">generic-call-space</p>`
});

@ -1,16 +0,0 @@
<script lang="ts">
const assetTypes = ['a', 'b', 'all'] as const;
function type<T>(x: T): T {
return x;
}
</script>
<ul>
{#each assetTypes as type (type)}
<li>{type === 'all' ? 'All types' : type}</li>
{/each}
</ul>
<p data-cast>{'cast' as string}</p>
<p data-generic-call>{type<string>('generic-call')}</p>
<p data-generic-call-space>{type <string>('generic-call-space')}</p>

@ -1,14 +0,0 @@
[
{
"code": "declaration_tag_invalid_type",
"message": "Declaration tags must be `let` or `const` declarations",
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 33
}
}
]

@ -1,2 +0,0 @@
<script lang="ts"></script>
{type Foo<T extends string> = T[]}
Loading…
Cancel
Save