mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
While generating constraints for `SuperRefExpr` generator has to figure out a type of superclass associated with a current reference. Doing so might produce an empty type (aka `Type()`) when resolution fails, so `getSuperType` needs to check whether type is valid before attempting to wrap it into `MetatypeType`. Resolves: rdar://problem/50819554
1.5 KiB
1.5 KiB