Files
swift-mirror/validation-test/compiler_crashers_2_fixed
Slava Pestov c8aee4180e Sema: Fix a couple of crash-on-invalid problems with class inheritance
It is possible for ClassDecl::getSuperclassDecl() to succeed but for
ClassDecl::getSuperclass() to fail. This happens if the superclass is
a generic type and one of the generic arguments could not be resolved,
or does not satisfy the generic requirements, for example; in that
case, a BoundGenericType cannot be formed.

In a couple of places we were not prepared for this possibility.
Let's recover by making judicious use of ErrorType.

Fixes <rdar://problem/73169149>.
2021-01-17 18:06:13 -05:00
..
2017-04-04 13:10:43 -07:00
2017-02-25 16:17:28 -08:00
2017-05-03 22:31:52 -07:00
2017-05-07 01:57:38 -07:00
2017-05-22 18:35:52 -07:00
2018-10-13 20:13:35 -07:00
2019-07-17 18:07:03 -04:00
2019-11-01 18:55:16 -04:00
2019-11-14 18:26:52 -05:00
2019-06-24 21:58:33 +01:00
2019-09-07 15:06:45 -03:00
2019-08-30 00:07:58 +01:00
2019-09-24 00:45:29 +01:00
2020-08-27 12:51:04 -07:00