summaryrefslogtreecommitdiffstats
path: root/source/slang/syntax.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2019-02-05 13:41:04 -0800
committerGitHub <noreply@github.com>2019-02-05 13:41:04 -0800
commita17b68a0ecc4c8e91d2ba3685f6e5bc30e3ead8c (patch)
treedac9810693ba5f56ae852544e76c79bd92841d0b /source/slang/syntax.cpp
parent9b80537bc0272a9caf93f146d8964d9bdd4a407e (diff)
Produce a better error message on errors in inheritance clauses (#828)
If I write: ``` struct Foo : IDoesntExist {} ``` Then currently Slang complains first that `IDoesntExist` is an undefined identifier, then it complains that it expected an interface type in the inheritance clause. The second ("cascading") error isn't really helpful, because of *course* if something isn't defined it isn't an interface. This change detects the case where the type expression is erroneous so that we avoid the cascading error.
Diffstat (limited to 'source/slang/syntax.cpp')
0 files changed, 0 insertions, 0 deletions