Skip to content

Commit

Permalink
Disallow certain types of decls in interface to provide better diag…
Browse files Browse the repository at this point in the history
…nostic message. (#4312)
  • Loading branch information
csyonghe authored Jun 8, 2024
1 parent 65928af commit ee812d1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions source/slang/slang-parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ee812d1

Please sign in to comment.