diff options
| author | Gangzheng Tong <tonggangzheng@gmail.com> | 2025-03-25 19:47:01 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-25 19:47:01 -0700 |
| commit | ff5e04f7f2e50466ed626193941c24b38494a785 (patch) | |
| tree | 710ba72842fed921f15cd11ed1379d927f2dcd4c /source | |
| parent | 5339e46020c19653df6119b127e90e759bdda6b9 (diff) | |
Fix mul operator followed by global scope (#6686)
* Fix mul operator followed by global scope
This should fix expr like `2.0f * ::a::b::c`.
But it will no longer parse something like
```
extension<T> Ptr<T> { static void foo(); }
int*::foo() // won't work, but this is a less common case
```
Fixes #6684
* Update simpe-namespace.slang to test global scope
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/slang-parser.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp index 6bf26b014..1b862de77 100644 --- a/source/slang/slang-parser.cpp +++ b/source/slang/slang-parser.cpp @@ -7738,7 +7738,6 @@ static Expr* parsePostfixExpr(Parser* parser) case TokenType::LBracket: case TokenType::OpMul: case TokenType::Dot: - case TokenType::Scope: expr = parsePostfixTypeSuffix(parser, expr); break; default: |
