https://github.com/shader-slang/slang
Raw File
Tip revision: bd6314de8bb113e2a317230f5e0fb6200c39a2e9 authored by kaizhangNV on 16 July 2024, 03:31:23 UTC
Move if_let syntax to convenience-features section (#4628)
Tip revision: bd6314d
class-keyword.slang
//DISABLED_TEST:DIAGNOSTIC_TEST:SIMPLE:

// `class` keyword is a reserved keyword in this context, and wso should produce an error.
// It can be used in the form of `enum class` 

class SomeClass
{
    int a;
    int b;
};
back to top