Files
swift-mirror/validation-test/compiler_crashers_fixed/25513-swift-constraints-constraintsystem-simplifyconformstoconstraint.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

10 lines
256 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
1
class b<T{class A:b
var f=Dictionary<a