summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-06-08 02:17:17 -0700
committerGitHub <noreply@github.com>2024-06-08 02:17:17 -0700
commitee812d188161ba37f64d47d9e8452825b39e1b81 (patch)
tree10cd0d4f5fbdbc3ed233d3074b0a354ea7483109
parent65928afe4f94e3c7e5fe33c1428f9d7afc14c7c5 (diff)
Disallow certain types of decls in `interface` to provide better diagnostic message. (#4312)
-rw-r--r--source/slang/slang-parser.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index ed579e96d..f5a217354 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -4213,13 +4213,8 @@ namespace Slang
case ASTNodeType::SubscriptDecl:
case ASTNodeType::PropertyDecl:
case ASTNodeType::AssocTypeDecl:
- case ASTNodeType::TypeAliasDecl:
- case ASTNodeType::TypeDefDecl:
case ASTNodeType::VarDecl:
case ASTNodeType::LetDecl:
- case ASTNodeType::StructDecl:
- case ASTNodeType::ClassDecl:
- case ASTNodeType::EnumDecl:
case ASTNodeType::GenericDecl:
case ASTNodeType::ConstructorDecl:
return true;