# VSCode linter warning "A non-DataType has been used in a type declaration statement."

**URL:** <https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482>\
**Category:** VS Code\
**Tags:** lint, linter\
**Created:** [August 22, 2024, 12:31pm UTC](https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482 "2024-08-22T12:31:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jishnub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jishnub/32/33620_2.png) [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Post date:** [August 22, 2024, 12:31pm UTC](https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482/1 "2024-08-22T12:31:36Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/9/a/9a756ebf2b93b3506765b73c0e92f382ee2abe35.png)

Why does the VSCode extension highlight such cases as “A non-DataType has been used in a type declaration statement.”, when this is a valid type declaration? I understand that this may be disabled, but what is the purpose of this warning?

---

<div class="post-metadata">

**Author:** ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)\
**Post date:** [August 22, 2024, 12:35pm UTC](https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482/2 "2024-08-22T12:35:06Z")

</div>

I think in other cases where there’s an assignment (i.e., stuff like `foo::AbstractArray = ...`) it’s intendes to indicate that this would try to `convert(AbstractArray, ...)`, which is unlikely to do something helpful?
