mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This can return ErrorType if the AST is invalid. A handful of callers handle the ErrorType result, but most don't, blindly assuming the result is always a nominal type. This resulted in a crash in at least one test case. Lift the burden from callers by always returning a nominal type here.
6 lines
176 B
Swift
6 lines
176 B
Swift
// {"signature":"swift::ide::printTypeUSR(swift::Type, llvm::raw_ostream&)"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
class a {
|
|
class b < c class e : a<> {
|
|
d = b
|