Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0083-rdar31163470-1.swift
Slava Pestov a3a290eb60 Mangling: Fix bug in the logic for dropping same-type constraints
It's not correct to drop a constraint if one of the two types
structurally contains generic parameters at the method depth.
2017-03-21 00:15:18 -07:00

10 lines
204 B
Swift

// RUN: %target-swift-frontend -primary-file %s -emit-ir
struct First<T> {}
struct Second<T> {}
struct Node<T> {
func create<U>() where T == First<U> { }
func create<U>() where T == Second<U> { }
}