Files
swift-mirror/validation-test/compiler_crashers_fixed/25640-swift-modulefile-declcommenttableinfo-readdata.swift
Slava Pestov 1a34667419 AST: Fix a couple of crashes with nested generic types
- When we walk up through parent types of 'this', we also have to walk up
  the parent contexts of 'gpContext', otherwise an assertion fires.

- getSuperclass() needs to map generic type parameters of the parent
  type even if the superclass is not generic.

Swift SVN r30676
2015-07-27 00:40:43 +00:00

8 lines
283 B
Swift

// RUN: not %target-swift-frontend %s -parse
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
struct Q{class a<h{struct Q{func a([Void}class A{enum A:d{class B:a